Skip to content

Instantly share code, notes, and snippets.

@JoeyButler
Created August 2, 2011 17:48
Show Gist options
  • Save JoeyButler/1120763 to your computer and use it in GitHub Desktop.
Save JoeyButler/1120763 to your computer and use it in GitHub Desktop.
useful git aliases
[alias]
s = show
b = branch
ba = branch -a
ci = commit
cp = cherry-pick
cia = commit -a --amend
cim = commit -am
co = checkout
cob = checkout -b
com = checkout master
d = diff
rb = rebase -i
prm = pull --rebase dev master
df = !git diff | mate
sd = !git show HEAD | mate
sdm = !git diff master HEAD | mate
dc = diff --cached
fp = format-patch
gr = log --graph
go = log --relative-date --graph --pretty=oneline --abbrev-commit
ga = log --pretty=format:'%h %an: %s' --graph --color
gd = log --pretty=format:'%h %an %ar: %s' --graph --color
st = status
ri = rebase -i
rc = rebase --continue
ra = rebase --abort
[color]
diff=auto
status=auto
branch=auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment