我想知道 [core] 做什么,以及如何设置它。我发现我的主目录中的 .gitconfig 文件是这样的:
[core]
autocrlf = input
safecrlf = true
[user]
name =
email =
在另一个主目录中,它看起来像这样:
[user]
name =
email =
[core]
excludesfile = /Users/chenfl84/.gitignore_global
[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