Skip to content

Instantly share code, notes, and snippets.

@haru01
Created June 11, 2014 00: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 haru01/803f29e95246d9823978 to your computer and use it in GitHub Desktop.
Save haru01/803f29e95246d9823978 to your computer and use it in GitHub Desktop.
gitconfig_alias
[alias]
co = checkout
st = status -s
pr = pull --rebase
c = commit
a = add
al = add -A .
au = add -u
ap = add -p
b = branch
ba = branch -a
bm = branch --merged
d = diff
ds = diff --staged
wd = diff --word-diff
l = log --decorate
la = log --oneline --decorate --graph --branches --tags --remotes
lo = log --oneline --decorate
ls = log --stat --decorate
lp = log -p --decorate
ru = remote update --prune
tree = log --graph --oneline --abbrev-commit --decorate
la = log --oneline --decorate --graph --branches --tags --remotes
gn = grep -n
su = submodule update
rh = reset HEAD^
sfu = submodule foreach "git fetch; git checkout origin/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment