我使用 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
谁能帮我解决这个问题?
提前致谢!
最佳答案
你需要从你的 git 配置中删除它:
core.excludesfile=/home/ubuntu/
只需手动编辑文件 ~/.gitconfig
,然后删除该行。该参数不支持目录。
关于git - Cloud9 IDE git 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32282279/