Created
October 8, 2013 10:37
-
-
Save wwqrd/6882798 to your computer and use it in GitHub Desktop.
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
# settings | |
git config --global branch.autosetupmerge true | |
git config --global branch.autosetuprebase always | |
git config --global push.default tracking | |
# display | |
git config --global log.decorate short | |
git config --global color.ui auto | |
git config --global color.interactive auto | |
git config --global color.diff auto | |
git config --global color.branch auto | |
git config --global color.status auto | |
git config --global pager.status true | |
git config --global pager.show-branch true | |
git config --global format.numbered auto | |
# shorts | |
git config --global alias.st status | |
git config --global alias.ci commit | |
git config --global alias.co checkout | |
git config --global alias.ru "remote update" | |
git config --global alias.br branch | |
git config --global alias.cam "commit -a -m" | |
# utils | |
git config --global alias.praise blame | |
git config --global alias.staged "diff --cached" | |
git config --global alias.unstaged diff | |
git config --global alias.both "diff HEAD" | |
git config --global alias.oneline "log --oneline" | |
git config --global alias.amend "commit --amend" | |
git config --global alias.undo "reset --hard HEAD^" | |
git config --global alias.tree "log --graph --decorate --pretty=oneline --abbrev-commit --all" | |
git config --global alias.myhist '!git log --author="$(git config user.name)" --format=%H |xargs git show --name-only --format=-------------%n%Cred%s%Creset%n%Cblue%h%Creset' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
via https://gist.github.com/jbenet/ee6c9ac48068889b0912