Git 마스터 과정
-
Editting 설정 git config --global core.editor "code --wait" git config --global -e
-
사용자 설정
$ git config --global user.name "username" $ git config --global user.email "[email protected]"
-
줄바꿈 설정
- MAC:
$ git config core.autocrlf input
- Windows:
$ git config core.autocrlf true
- MAC:
$ git init
예외처리 설정 파일
$ touch .gitignore
$ git log --graph --all --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(white)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --date=short
-
alias 설정
git config --global alias.hist "log --graph --all --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(white)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --date=short"