shell, vim, git명령어 등

jiwoo·2022년 2월 12일
0

가끔 쓰는데 자주 까먹는 명령어들 노트

ssh-keygen
alias []="[명령]"

git

git init
git clone [주소] [디렉토리name]
git remote
git remote [origin] [master] [주소]
git status
git add [파일]
git commit [-m] [hello]
git push
git config --list 또는 -l
git config --global user.name "[name]"
git config --global user.email "[email]"
git config --local user.name "[name]"
git config --unset --global user.name

vim
.vimrc

:syntax on
:set num 또는 :set nu
:set autoindent
:highlight
:color blue, evening, zellner 등
d dd //지우기(붙여넣기 가능)
shift + v //줄 블럭 선택
y //선택한 내용 복사하기
p //붙여넣기(해당 라인 아래에 붙는다)
u //undo
ctrl + R //redo(undo를 redo)

0개의 댓글