0

我是 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")

有谁知道发生了什么,我该如何解决这个问题?

4

1 回答 1

0
git config --global color.ui false

将禁用彩色输出。我认为这与它有关。

于 2013-06-06T08:23:59.020 回答