是否可能有git状态只显示修改的文件,因为在我的情况下,有太多的阶段性文件?


当前回答

我正在寻找相同的信息,发现以下给出修改文件:

git status -uno

其他回答

要列出所有修改过的文件,使用:

git show --stat --oneline HEAD

你不能用git status来这样做,但是你可以使用git ls-files -m来显示所有修改过的文件。

你可以使用

$ git status -uno 

只列出修改过的文件。

所有的答案都很棒,但Git已经发展,现在提供了一个开箱即用的解决方案,只获得更改文件的名称(包括untracked)

git status --short

如果您需要脚本友好的输出,请使用推荐的—porcelain标志

git status --short --porcelain

我正在寻找相同的信息,发现以下给出修改文件:

git status -uno