【发布时间】:2018-09-25 22:46:51
【问题描述】:
在此提交消息中,它表示 2 个文件已更改。
$ git commit -m "fixed .gitignore"
[master c30afbe] fixed .gitignore
Committer: Sahand Zarrinkoub <sahandzarrinkoub@n133-p41.eduroam.kth.se>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
2 files changed, 5 insertions(+), 4 deletions(-)
这对我来说有点令人惊讶。我以为我只准备了一个要更改的文件。现在,我想看看哪些文件已更改以及如何更改。这样做的方法是什么?
【问题讨论】:
-
你试过
git status吗? -
你也可以试试
git diff -
你用什么命令得到这个消息?
标签: git