Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Forked from dan-turner/gist:3662895
Created July 5, 2013 06:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tathamoddie/5932393 to your computer and use it in GitHub Desktop.
Save tathamoddie/5932393 to your computer and use it in GitHub Desktop.
[alias]
st = status
ci = commit
br = branch
co = checkout
com = checkout master
fe = fetch origin
bn = !git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`
rb = rebase
rbm = rebase master
pr = !sh -c 'BRANCH_NAME=$(git bn) && git co $0 && git fe && git merge --ff-only origin/$0 && git co $BRANCH_NAME && git rb $0'
pmr = !git pr master
df = diff
who = shortlog -s --
hr = reset --hard
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold yellow)<%cn>%Creset' --abbrev-commit
rbc = rebase --continue
mt = mergetool
unstage = reset HEAD $1
stage = add -A
ff = !sh -c 'BRANCH_NAME=$(git bn) && git merge --ff-only origin/$BRANCH_NAME'
nuke = !git clean -dxf && git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment