Skip to content

Instantly share code, notes, and snippets.

@gerred
Created June 10, 2011 20:30
Show Gist options
  • Save gerred/1019696 to your computer and use it in GitHub Desktop.
Save gerred/1019696 to your computer and use it in GitHub Desktop.
[alias]
st = status
ci = commit
co = checkout
br = branch
ls = branch
s = status
a = add
b = branch
d = diff
dc = diff --cached
v = show
l = log --pretty=oneline
ll = log
cp = cherry-pick
c = checkout
cc = commit
ri = rebase -i HEAD~10
sh = !git-sh
ro = !git fetch origin && git reset --hard origin/master
c = commit
a = add
aa = !git add -u && git add . && git status
cob = checkout -b
up = !git fetch origin && git rebase origin/master
ir = !git rebase -i origin/master
done = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && rake && git push
heroku = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && rake && git push && git push heroku master
ca = commit --amend -C HEAD
who = shortlog -n -s --no-merges
cleanup = !git remote prune origin && git gc && git clean -dfx && git stash clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment