Last active
January 13, 2016 10:06
-
-
Save we11adam/62f3baad296fb06c469f to your computer and use it in GitHub Desktop.
~/.gitconfig
This file contains 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
[user] | |
name = Name | |
email = user@example.com | |
[push] | |
default = matching | |
[mergetool] | |
keepBackup = true | |
[merge] | |
tool = sourcetree | |
[core] | |
editor = vim | |
filemode = false | |
pager = less -F -X -I | |
excludesfile = /Users/Adam/.gitignore | |
quotepath = false | |
[alias] | |
ui = !stree | |
co = checkout | |
rl = reflog | |
rit = rebase -i HEAD~2 | |
ri = rebase -i | |
br = branch | |
ci = commit | |
st = status | |
cfg = config --global | |
unstage = reset HEAD -- | |
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative | |
last = log -1 --name-status HEAD | |
h = help | |
md = diff --minimal -w | |
amend = commit --amend | |
l3 = log -3 | |
tv = !git tag | sort -V | |
wc = whatchanged | |
today = log --since=midnight --author='Name' --oneline | |
week = log --since='1 week ago' --author='jianfei' --oneline | |
export = !git archive master | tar -x -C | |
si = "!_() { curl -sL https://www.gitignore.io/api/$@,osx,linux,windows|grep -v '^#'|grep -v '^ *$';};_" | |
[help] | |
autocorrect = 0 | |
[color] | |
ui = true | |
status = true | |
grep = true | |
interactive = true | |
branch = true | |
diff = true | |
decorate = true | |
[color "branch"] | |
current = yellow bold | |
local = green bold | |
remote = cyan bold | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "status"] | |
added = green bold | |
changed = yellow bold | |
untracked = red bold | |
[rerere] | |
enabled = true | |
[pull] | |
default = current | |
rebase = true | |
[difftool "sourcetree"] | |
cmd = /usr/local/bin/bcomp $LOCAL $REMOTE | |
path = | |
[mergetool "sourcetree"] | |
cmd = /usr/local/bin/bcomp $LOCAL $REMOTE $BASE $MERGED | |
trustExitCode = true | |
[filter "media"] | |
clean = git-media-clean %f | |
smudge = git-media-smudge %f | |
[advice] | |
pushNonFastForward = false | |
statusHints = false | |
commitBeforeMerge = false | |
resolveConflict = false | |
implicitIdentity = false | |
detachedHead = false | |
[credential] | |
helper = osxkeychain | |
[filter "hawser"] | |
clean = git hawser clean %f | |
smudge = git hawser smudge %f | |
required = true | |
[filter "lfs"] | |
clean = git lfs clean %f | |
smudge = git lfs smudge %f | |
required = true | |
[log] | |
date = iso | |
[gui] | |
encoding = utf-8 | |
[stash] | |
showPatch = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment