我是git的新手。 我正在做一个练习,发现一些奇怪的事情发生了。当我尝试检查状态时,修改后的行没有显示在控制台中。它在我的屏幕上看起来像这样:
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
#
#
no changes added to commit (use "git add" and/or "git commit -a")
即使我选择整个部分(认为这将是一个颜色问题),它仍然是空白。但是,如果我复制并粘贴结果,则显示该行:
$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: hello.rb
#
no changes added to commit (use "git add" and/or "git commit -a")
有没有人知道发生了什么,我该如何解决这个问题?
答案 0 :(得分:0)
git config --global color.ui false
将禁用彩色输出。我认为它与它有关。