Eclipse Git插件 - 从repo中删除文件而不删除本地 [英] Eclipse Git plugin - remove file from repo without deleting local

查看:490
本文介绍了Eclipse Git插件 - 从repo中删除文件而不删除本地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Egit插件,是否可以从源代码控制中永久删除文件而不删除本地副本?



也就是说,有一个GUI操作相当于运行git rm --cached?



(编辑简化问题)

解决方案>

我找到了答案。 Team-> Untrack的确相当于rm --cached。然而,有一个已知的错误,当您解开后,然后尝试提交时会产生奇怪的行为。



https://bugs.eclipse.org /bugs/show_bug.cgi?id=363405


Using the Egit plugin, is it possible to permanently remove a file from source control without deleting the local copy?

I.e., is there a GUI action equivalent to running "git rm --cached"?

(Edited to simplify question)

解决方案

I have found the answer. Team->Untrack is indeed the equivalent of "rm --cached". However there is a known bug which produces weird behaviour when you untrack and then try to commit.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=363405

这篇关于Eclipse Git插件 - 从repo中删除文件而不删除本地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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