我希望了解 [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