【问题标题】:Cloud9 IDE git setupCloud9 IDE git 设置
【发布时间】:2015-08-29 02:58:06
【问题描述】:

我使用 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 gitignore cloud9-ide


    【解决方案1】:

    你需要从你的 git 配置中删除它:

    core.excludesfile=/home/ubuntu/

    只需手动编辑文件~/.gitconfig,然后删除该行。该参数不支持目录。

    【讨论】:

    • @tonyhhkung,如果这对你有用,请接受它作为答案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-16
    • 1970-01-01
    • 2019-08-12
    • 2015-09-12
    • 2019-04-20
    相关资源
    最近更新 更多