Created
November 25, 2013 21:08
-
-
Save magoon/7648936 to your computer and use it in GitHub Desktop.
Some of my gitconfigs
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
| [color] | |
| # Use all of the colors | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| interactive = auto | |
| ui = true | |
| pager = true | |
| [log] | |
| # Show remotes and branh tips in log | |
| decorate = full | |
| [alias] | |
| # show branching log | |
| tree = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
| # show pretty log | |
| lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Creset' --abbrev-commit --date=relative | |
| pretty = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Creset' --abbrev-commit --date=relative | |
| # awesome log of what files have changed | |
| wc = whatchanged --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Creset' --abbrev-commit --date=relative | |
| # save a branch just like you would a stash | |
| save = !sh -c 'export PREV=$(git symbolic-ref HEAD|cut -d/ -f3-) && git checkout -b "$1" && git commit -am "$1" && git checkout "$PREV"' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment