Skip to content

Instantly share code, notes, and snippets.

@hosh
Created September 9, 2009 17:32
Show Gist options
  • Save hosh/183912 to your computer and use it in GitHub Desktop.
Save hosh/183912 to your computer and use it in GitHub Desktop.
Useful git aliases
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