Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hagenburger
Created April 22, 2015 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagenburger/fe9e9959e006c53562d0 to your computer and use it in GitHub Desktop.
Save hagenburger/fe9e9959e006c53562d0 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
ci = commit -pm
last = log -1 HEAD
st = status
nb = checkout -b
co = checkout
cog = "!cog() { git checkout `git branch|grep $1`; }; cog"
cp = cherry-pick
amend = commit --amend -p -CHEAD
rb = rebase
rbc = rebase --continue
p = pull --rebase
a = add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment