3

当我git status在我的 Git Bash 上执行操作时,由于大量未跟踪和添加的文件,终端就像将列表滚动到文件末尾一样。有没有办法可以暂停它,以便我可以一个一个地查看所有文件?类似于如何dir /p工作。

4

3 回答 3

3

The most portable way would be to redirect the output of the git status command to a file output_file:

git status > output_file

If you do not specify any path this newly created file will be created in the current directory and will be shown as untracked. Use:

git status > C:\Users\user\output_file

To redirect the output to any location.

于 2013-10-27T16:12:41.183 回答
0

没有办法暂停它并一一查看(据我所知)。但是,您可能有兴趣使用git status --shortwhich 将每个文件放在一行上,并且可能会使您更容易破译。

于 2013-10-27T15:52:07.377 回答
0

你是在 bash 环境下工作吗?你可以像在终端中一样:git status | tee status(注意:它会将“git status”的输出回显到“status”文件)

于 2013-10-27T16:04:49.220 回答