Git - Git Aliases

자주 쓰는

Git 자체

git config --global alias.co checkout
git config --global alias.chekcout checkout
git config --global alias.sw switch
git config --global alias.ws switch
git config --global core.editor "code --wait"

(sw가 치기 어려움)

git lggit log 푸르게 푸르게

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

# Window
git config --global alias.lg "log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"