Created
June 19, 2014 01:54
-
-
Save chugcup/75969f861c4ba07b8161 to your computer and use it in GitHub Desktop.
Custom .gitconfig with hg-like shortcuts
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 = NAME | |
| email = EMAIL | |
| [core] | |
| editor = vim | |
| [merge] | |
| tool = meld | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| interactive = true | |
| [alias] | |
| ci = commit | |
| st = status -s | |
| stat = status -s | |
| out = !git fetch && git log FETCH_HEAD..`git rev-parse --abbrev-ref HEAD` | |
| outgoing = !git fetch && git log FETCH_HEAD..`git rev-parse --abbrev-ref HEAD` | |
| in = !git fetch && git log `git rev-parse --abbrev-ref HEAD`..FETCH_HEAD | |
| incoming = !git fetch && git log `git rev-parse --abbrev-ref HEAD`..FETCH_HEAD | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment