Skip to content

Instantly share code, notes, and snippets.

@walkingice
Created July 12, 2016 15:38
Show Gist options
  • Save walkingice/87b8931e28fa1ab85a43492e2852b349 to your computer and use it in GitHub Desktop.
Save walkingice/87b8931e28fa1ab85a43492e2852b349 to your computer and use it in GitHub Desktop.
My git config
[color]
ui = auto
[user]
name = YOUR_NAME
email = YOUR@DOMAIN.NAME
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ld = log --decorate --graph
lf = log --pretty=fuller --decorate --graph
s = status
amd = commit -a --amend
cm = commit --amend
co = commit
ca = commit -a
ck = checkout
ri = rebase -i
ri5 = rebase -i HEAD~5
ri10 = rebase -i HEAD~10
ra = rebase --abort
rc = rebase --continue
cp = cherry-pick
rb = rebase
fp = fetch -p --tags
r = grep
clean-packed = -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now gc
[diff]
algorithm = patience
[core]
editor = vim
autocrlf = input
quotepath = false
paginate = true
pager = less
[push]
default = simple
[url "git@github.com:"]
insteadOf = https://github.com/
[tig "bind"]
# use 'Z' to see commit via vimdiff
generic=Z !sh -c 'git difftool %(commit)^ %(commit)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment