Created
August 27, 2012 23:34
-
-
Save ready4god2513/3493388 to your computer and use it in GitHub Desktop.
My .gitconfig file
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
| [user] | |
| name = Brandon Hansen | |
| email = [email protected] | |
| [core] | |
| excludesfile = /Users/brandon/.global_ignore | |
| editor = mate -w | |
| [color] | |
| ui = auto | |
| [grep] | |
| # Enable POSIX extended regex | |
| extendedRegexp = true | |
| [log] | |
| # Show times in my time zone. | |
| date = local | |
| [alias] | |
| # See more here: http://git.wiki.kernel.org/index.php/Aliases | |
| st = status | |
| # I like my "ci" alias to auto-stage, you may not | |
| ci = "commit -a -v" | |
| br = branch | |
| co = checkout | |
| di = diff | |
| # A partial port of Mercurial's "hg rollback" | |
| rollback = "reset HEAD~" | |
| # A partial port of Mercurial's "hg incoming" | |
| incoming = "!git remote update -p; git whatchanged ..@{u}" | |
| in = !git incoming | |
| # A partial port of Mercurial's "hg outgoing" | |
| outgoing = whatchanged @{u}.. | |
| out = !git outgoing | |
| # Lazy pull/push alias | |
| sync = !git pull && git push | |
| # A much prettier log output | |
| glog = log --pretty='%C(yellow)%h%d %C(bold green)%s%Creset %C(blue)(%an @ %cr)%Creset' --graph | |
| [push] | |
| # Push the current branch to its upstream branch by default (http://stackoverflow.com/a/948397) | |
| default = upstream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment