Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我的源代码文件 Foo.cpp 查找版本标记 v3.4.0 中所做的所有更改。
希望上面的句子足以解释我的问题。实际上,我只需要在一个为版本标签 v3.4.0 推送的文件中找到所有更改
要查看给定文件的标记中已完成的所有更改:
git diff <prev_tag_name> <tag_name> <path/to/filename>
git diff v3.3.9 v3.4.0 Foo.cpp
就是这样..