[Git]Git Config

[alias]
    lg   = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
    rt   = rev-parse --show-toplevel
    co   = checkout
    ci   = commit
    st   = status -sb
    br   = branch
    rb   = rebase

[color]
    ui          = true
    status      = auto
    branch      = auto
    diff        = auto
    interactive = auto

[filter "lfs"]
                clean = git-lfs clean %f
                smudge = git-lfs smudge %f
                required = true

[push]
                default = current
[core]
                excludesfile = /Users/andyliu/.gitignore_global
                ignorecase = false
[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
[user]
                name = Andy Liu
                email = Your Email
               

保存到 ~.gitconfig 文件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章