Created
September 9, 2009 17:32
-
-
Save hosh/183912 to your computer and use it in GitHub Desktop.
Useful git aliases
This file contains 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
Some useful git aliases | |
[alias] | |
co = checkout | |
info = config --list | |
last = log -n 1 | |
rollback = reset HEAD~1 | |
unindex = reset HEAD | |
ready = "!git add -u . ; git diff --cached" | |
(git ready will stage adds/removes then show you the difference. This is good for smaller commits, such as if you're committing at with every passing spec.) | |
OSX-specific ones: | |
vi = !mvim -c NERDTree & | |
view = !gitx --all | |
On my Linux laptop, I have these two instead: | |
vi = !gvim -c NERDTree & | |
view = !gitl --all | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment