我在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$
知道发生了什么事吗?