Created
January 19, 2020 03:39
-
-
Save bigfang/b3ac48c0471e090d5d7f72d8e9ba51a7 to your computer and use it in GitHub Desktop.
git alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.ss stash | |
git config --global alias.sp "stash pop" | |
git config --global alias.sl "stash list" | |
git config --global alias.sa "stash apply" | |
git config --global alias.cp cherry-pick | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git config --global alias.c1 "checkout HEAD^" | |
git config --global alias.r1 "reset HEAD^" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment