Skip to content

Instantly share code, notes, and snippets.

@sighingnow
Last active July 23, 2018 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sighingnow/2a5c190b2fa735c09316 to your computer and use it in GitHub Desktop.
Save sighingnow/2a5c190b2fa735c09316 to your computer and use it in GitHub Desktop.
My gitconfig file.
[gui]
fontui = -family 微软雅黑Monaco -size 8 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family \"YaHei Consolas Hybrid\" -size 8 -weight normal -slant roman -underline 0 -overstrike 0
encoding = utf-8
warndetachedcommit = true
tabsize = 4
recentrepo = D:/Open/foundationdb-haskell
[user]
email = sighingnow@gmail.com
name = HE, Tao
signingkey = CA574FD9
[merge]
summary = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
ui = true
[alias]
tree = log --graph --oneline --decorate --all --abbrev-commit --color --full-history --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
restore = !git checkout $(git rev-list -n 1 HEAD -- "$1")^ -- "$1"
[core]
excludesfile = ~/.gitconfig
autocrlf = false
safecrlf = false
filemode = true
symlinks = true
longpaths = true
[pack]
packSizeLimit = 2g
[diff]
tool = sourcetree
[merge]
tool = sourcetree
[help]
format = html
[difftool "sourcetree"]
cmd = 'D:/Program Files/Araxis Merge/Compare.exe' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = 'D:/Program Files/Araxis Merge/Compare.exe' -wait -merge -3 \"$LOCAL\" \"$BASE\" \"$REMOTE\" \"$MERGED\"
trustExitCode = true
[filter "lfs"]
smudge = git-lfs smudge -- %f
required = true
clean = git-lfs clean -- %f
[url "git://github.com/ghc/packages-"]
insteadOf = git://github.com/ghc/packages/
[commit]
gpgsign = true
[url "http://github.com/ghc/packages-"]
insteadOf = http://github.com/ghc/packages/
[url "https://github.com/ghc/packages-"]
insteadOf = https://github.com/ghc/packages/
[url "ssh://git@github.com/ghc/packages-"]
insteadOf = ssh://git@github.com/ghc/packages/
[url "git@github.com:ghc/packages-"]
insteadOf = git@github.com:ghc/packages/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment