Git: 如何找到到目前为止未提交的更改?

Git: How to find uncommitted changes so far?

这是我 运行 进入的情况:

当我尝试 git pull 时,我发现我的合作者进行了一些更改,因此收到以下错误消息。

error: Your local changes to the following files would be overwritten by merge:
    template.tex
Please, commit your changes or stash them before you can merge.
Aborting

所以我想知道自上次提交以来我做了哪些更改,以便我可以决定提交或隐藏它们。

如果您还没有添加任何新文件,您只需在终端上 运行 git diff 即可进行特定更改。 运行 git status 将显示要为下一次提交提交的文件更改。