刚安装git但是当我尝试git status给我一个致命的错误

时间:2016-10-22 16:43:31

标签: git

我在Git上真的很新,只是安装了,当我git status时,它给了我这个错误:

fatal: cannot use /Users/.gitignore as an exclude file

在阅读评论中链接的问题后,我也尝试了这个:

Pro-de-HackNew:~ hacknew$ git config --global core.excludesfile
/usr/local/bin/git/global.gitignore
Pro-de-HackNew:~ hacknew$ git config --global --unset core.excludesfile
Pro-de-HackNew:~ hacknew$ git status
fatal: cannot use /Users/hacknew/.gitignore as an exclude file
Pro-de-HackNew:~ hacknew$

知道发生了什么事吗?

0 个答案:

没有答案