Skip to content

Instantly share code, notes, and snippets.

@JakeGinnivan
Created May 14, 2014 16:16
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 JakeGinnivan/8cc4968f9c527e2c7fcd to your computer and use it in GitHub Desktop.
Save JakeGinnivan/8cc4968f9c527e2c7fcd to your computer and use it in GitHub Desktop.
Git aliases
[alias]
a = add -A
abort = rebase --abort
amend = commit --amend -C HEAD
bl = blame -w -M -C
br = branch
cat = cat-file -t
ci = commit -a
co = checkout
df = diff --word-diff=color --word-diff-regex=. -w --patience
dump = cat-file -p
in = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short ..@{u}
l = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short
lg = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
out = log --pretty=format:\"%h %ad | %s%d [%an]\" --date=short @{u}..
pick = add -p
r = add --refresh
re = rebase
skip = rebase --skip
rc = rebase --continue
st = status -sb
stats = diff --stat
undo = reset head~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment