Last active
November 27, 2019 10:33
-
-
Save sliekens/4c27c06eb81d1e954f7839a48bda6ae9 to your computer and use it in GitHub Desktop.
Useful Git aliases
This file contains hidden or 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.last "log -1 HEAD" | |
git config --global alias.ff "merge --ff-only" | |
git config --global alias.root "rev-parse --show-toplevel" | |
git config --global alias.done "branch --format=\"%(if:equals=gone)%(upstream:track,nobracket)%(then)%(refname:short)%(end)\"" | |
git config --global alias.doing "branch --format=\"%(if:notequals=)%(upstream)%(then)%(refname:short)%(end)\"" | |
git config --global alias.todo "branch --format=\"%(if:equals=)%(upstream)%(then)%(refname:short)%(end)\"" | |
git config --global alias.monster-rebase "rebase -s recursive -X patience" | |
git config --global alias.uncommitted "ls-files --modified" | |
git config --global alias.untracked "ls-files --others --exclude-standard" | |
git config --global alias.pushh "push --set-upstream origin HEAD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment