是否可以配置'git status'以便它不提供帮助文本?

FMc*_*FMc 8 git dvcs

有没有办法配置Git从git status命令中删除死木?而不是这种怪异:

# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       new file:   README
#
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   FB.pm
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       Foo.pl
Run Code Online (Sandbox Code Playgroud)

我只想要关键信息:

# On branch master
# Changes to be committed:
#       new file:   README
#
# Changed but not updated:
#       modified:   FB.pm
#
# Untracked files:
#       Foo.pl
Run Code Online (Sandbox Code Playgroud)

Dus*_*tin 7

在本地命令行上键入:

git config --global advice.statushints false
Run Code Online (Sandbox Code Playgroud)

  • 我没有在文档中找到它,我在源代码中找到了它.它被添加到v1.6.4.2-270-gedf563f中.没有更新文档来反映这一变化:http://github.com/git/git/commit/edf563fbaa2ab50734db4a61e9092f25fbb5a417 (3认同)