美文网首页
Mac gitconfig配置

Mac gitconfig配置

作者: 一杉风雨 | 来源:发表于2019-04-20 20:01 被阅读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
    

    相关文章

      网友评论

          本文标题:Mac gitconfig配置

          本文链接:https://www.haomeiwen.com/subject/nbolgqtx.html