有没有办法将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我只需要关键信息:
# On branch master
# Changes to be committed:
# new file: README
#
# Changed but not updated:
# modified: FB.pm
#
# Untracked files:
# Foo.pl发布于 2009-10-08 05:22:05
在本地命令行中键入以下内容:
git config --global advice.statushints false发布于 2009-10-08 05:22:46
您可以使用
git diff --name-status它将显示有关已修改和已删除文件的信息。
M app/controllers/truck_def_controller.rb
M app/models/truck.rb
M app/views/prob_def/new_truck.haml
M db/development.sqlite3
M public/javascripts/truck.js
D public/stylesheets/scaffold.css但是,它不会提及尚未添加的文件。
(source)
发布于 2009-10-08 15:51:01
请参见提交status: make "how to stage" messages optional。相应的配置属性为statusHints。
https://stackoverflow.com/questions/1535708
复制相似问题