Mac gitconfig配置

2019-04-20  本文已影响0人  一杉风雨

记录常用的gitconfig配置

[user]
        name = Rain
        email = iheyu22@163.com
[credential]
        helper = cache --timeout=8640000
#       helper = cache --timeout=600
[push]
        default = simple
[color]
        ui = true
        status = auto
        branch = auto
[alias]
        st = status -s
        br = branch
        ci = commit
        co = checkout
        lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[filter "lfs"]
        required = true
        clean = git-lfs clean -- %f
        smudge = git-lfs smudge -- %f
        process = git-lfs filter-process
[difftool "sourcetree"]
        cmd = opendiff \"$LOCAL\" \"$REMOTE\"
        path = 
[mergetool "sourcetree"]
        cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
        trustExitCode = true
[core]
        excludesfile = /Users/rain/.gitignore_global
[commit]
        template = /Users/rain/.stCommitMsg
上一篇 下一篇

猜你喜欢

热点阅读