Skip to content

Instantly share code, notes, and snippets.

@greneholt
Last active August 4, 2017 00:06
Show Gist options
  • Save greneholt/3166683 to your computer and use it in GitHub Desktop.
Save greneholt/3166683 to your computer and use it in GitHub Desktop.
Git config
[alias]
ci = commit
cia = commit --amend
cian = commit --amend --no-edit
st = status
pl = pull
cp = cherry-pick
cps = cherry-pick --strategy=subtree -x
co = checkout
df = diff
dc = diff --cached
br = branch
rb = rebase
addi = add -i
tree = log --graph --all --decorate --pretty=format:'%C(bold red)%h %C(bold blue)%<(8)%an%C(auto)%d%Creset %s %Cgreen(%ar)%Creset'
tr = log --graph --decorate --pretty=format:'%C(bold red)%h %C(bold blue)%<(8)%an%C(auto)%d%Creset %s %Cgreen(%ar)%Creset'
dw = diff --color-words='\\w+|[^[:space:]]'
dcw = diff --cached --color-words='\\w+|[^[:space:]]'
showw = show --color-words='\\w+|[^[:space:]]'
[color]
ui = auto
[diff]
algorithm = patience
[push]
default = simple
[log]
date = local
[core]
editor = subl -n -w
[fetch]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment