7
Git diff仅显示已修改的行
当我执行git diff时,它显示已添加的行: + this line is added 已删除的行: - this line is removed 但它还显示了许多未修改的行: this line is not modified this line is also not modified 这导致实际的git diff看起来像这样: + this line is added this line is not modified - this line is removed this line is not modified 我可以要求git只显示已修改的行,而忽略所有其他未修改的代码吗?我已经编写了一种方法,可以删除所有前面没有“ +”或“-”符号的行,但是我确信必须有一种更简单的方法来执行此操作。 在我的git …
128
git