[英]Still a problem with Git after installing MacOS Mojave
我最近将MacOS升级到Mojave,现在我发现Git不起作用。 当我尝试在计算机上初始化新的git repo时,我继续收到以下错误消息:
error: could not expand include path '~/.gitcinclude'
fatal: bad config line 44 in file /usr/local/git/etc/gitconfig
这是我机器上gitconfig
文件的第43-46行:
[include]
path = ~/.gitcinclude
path = .githubconfig
path = .gitcredential
我遵循了另一个stackOverflow问题的建议( macOS Mojave Update(xcrun:错误:无效的活动开发人员路径(/ Library / Developer / CommandLineTools) )后Git无法正常工作,但是Git仍然拒绝工作。升级xcode:
xcode-select --install
然后,我将路径重新设置为xcode文件夹:
sudo xcode-select -switch /Library/Developer/CommandLineTools
关于我应该从这里去哪里有什么建议吗?
我知道了。 另一个stackOverflow问题的第二个答案解决了这个问题。 我在上一次搜索中错过了它,因为该问题并未专门解决MacOS问题。
Git无法扩展包含路径'〜/ .gitcinclude',致命的:/ usr / local / git / etc / gitconfig中错误的配置文件第49行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.