如何在Eclipse中比较git中的两个修订版本? [英] How can I compare two revisions in git in Eclipse?

查看:1497
本文介绍了如何在Eclipse中比较git中的两个修订版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS 10.6上使用了 eclipse插件,用于Git ,我无法弄明白比较两个版本的文件。我可以提取文件的历史记录,并查看所有提交的消息,但我无法弄清楚如何看到每个提交中发生了什么变化。

I am using the eclipse plugin for Git on Mac OS 10.6, and I cannot figure out how to compare two version of a file. I can pull up the file's history, and see all of the commits, with their messages, but I can't figure out how to see what changed in each commit.

这是非常容易的颠覆,我确信它很容易与Git,如果你知道在哪里看(但显然,我不)。

This was very easy with subversion, and I'm sure its easy with Git, if you know where to look (but apparently, I don't).

任何指针将非常感激。

要详细说明我的问题,有没有办法访问 git-diff eclipse插件?

To elaborate on my question, is there a way to access git-diff in the eclipse plugin?

推荐答案

EGit用户指南


选择资源(项目,文件夹或文件)项目浏览器
或导航器,然后右键单击比较下的一个操作。

select a Resource (project, folder, or file) in the project explorer or navigator and right-click an action under Compare With.

我刚刚使用了EGit 1.3.0 。您可以与提交,HEAD,以前的版本分支,标记或引用,Git索引或历史记录中的任何项目进行比较。

I just tested this with EGit 1.3.0. You can compare with a commit, HEAD, previous revision, "branch, tag, or reference", Git index, or any item in History.

这篇关于如何在Eclipse中比较git中的两个修订版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆