Eclipse git checkout(aka,revert)(Eclipse git checkout (aka, revert))

编程入门 行业动态 更新时间:2024-10-27 16:28:37
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.

更多推荐

本文发布于:2023-07-30 23:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340288.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:git   Eclipse   checkout   revert   aka

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!