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.
我通过 Eclipse egit插件使用 git。我是使用 git 作为 VCS 的新手,我想知道是否有一种方法可以创建一个补丁来捕获来自 Eclipse 内的多个提交的更改。例如:
这可以使用egit在eclipse中完成吗?如果不是,那么执行此操作的命令行是什么?
您正在寻找的 git 命令是:
git diff HEAD~2 HEAD
HEAD表示您当前的提交,并~2表示“之前的两次提交”。
HEAD
~2
我不确定 egit 是否可以做到这一点,但我会寻找某种任意 diff 功能:“diff against ... [commit]”。