Eclipse git checkout(aka,revert)(Eclipse git checkout (aka, revert))
使用EGit插件可以在Eclipse中做相当于git checkout
我有一个文件被修改。 我想丢弃这些更改,并将文件还原回源库中的内容。 在Subversion中,这称为还原。 在git中,相当于checkout。
我找不到Team下的任何菜单项,看起来像是结帐或还原。 我使用的是EGit 0.6.0。
Is it possible to do the equivalent of git checkout from within Eclipse using the EGit plugin?
I have a file that's been modified. I want to discards the changes and revert the file back to what's in the source repository. In Subversion this is called revert. In git the equivalent is checkout.
I can't find any menu item under Team that looks like checkout or revert. I'm using EGit 0.6.0.
最满意答案
这可以通过包视图中的文件的上下文菜单“替换为/ Git索引中的文件”来完成。
This can be done via the context menu "Replace with/File in Git index" on the file in package view.
更多推荐
发布评论