Skip to content

Instantly share code, notes, and snippets.

@sakama
Created January 21, 2014 08:39
Show Gist options
  • Save sakama/8536364 to your computer and use it in GitHub Desktop.
Save sakama/8536364 to your computer and use it in GitHub Desktop.
gitconfig
[user]
[color]
ui = auto
[core]
editor = vim
excludesfile = ~/.gitignore
[alias]
ad = add
br = branch
ci = commit
cia = commit --amend
cih = commit --amend -C HEAD
cih1 = commit --amend -c HEAD@{1}
co = checkout
d = diff
dc = diff --cached
dn = diff --name-only
dw = diff --color-words
ft = fetch
l = log --oneline -n 20
lgraph = log --oneline --graph --decorate --all -n 20
lp = log --oneline -n 20 -p
ls = log --stat -n 1
pl = pull
ps = push
rb = rebase
rbh = rebase HEAD
rbo = rebase --onto
rl = reflog show -n 20
rs = reset
rsh = reset --hard
sh = show
so = remote show origin
st = status -s
[push]
default = tracking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment