Created
July 12, 2016 15:38
-
-
Save walkingice/87b8931e28fa1ab85a43492e2852b349 to your computer and use it in GitHub Desktop.
My git config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = auto | |
[user] | |
name = YOUR_NAME | |
email = [email protected] | |
[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 "[email protected]:"] | |
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