我使用Cloud9作为我的IDE并想要设置git。 当我输入$ git config -l时 它显示:
core.editor=nano
core.whitespace=off
core.excludesfile=~/.gitignore
core.excludesfile=/home/ubuntu/
advice.statusuoption=false
color.ui=true
push.default=simple
然后我输入$ git config --global core.excludesfile 它显示
/home/ubuntu/
然后在我的.git文件夹下,输入$ git status。它总是显示
fatal: cannot use /home/ubuntu/ as an exclude file
有人可以帮我解决这个问题吗?
提前致谢!
答案 0 :(得分:2)
您需要从git config中删除它:
core.excludesfile=/home/ubuntu/
只需手动编辑文件~/.gitconfig
,然后删除该行。该参数不支持目录。