如何从 SVN (Eclipse) 提交中删除文件夹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15045140/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:03:40  来源:igfitidea点击:

How to Remove a Folder From Committing in SVN (Eclipse)

eclipsesvnversion-controlsubclipsespringloops

提问by boltup_im_coding

I know I might get slammed for this question, but I have looked at previous SO questions and have not found my answer.

我知道我可能会因为这个问题而受到抨击,但我查看了以前的 SO 问题并没有找到我的答案。

I am using SpringLoops to host my SVN version control. I am using Subclipsean SVN plugin for Eclipse.

我正在使用 SpringLoops 来托管我的 SVN 版本控制。我正在为 Eclipse使用Subclipse一个 SVN 插件。

When I right click my project's root folder and do Team -> CommitI do notwant to include the binfolder to that committ. Yes, I have previously committed it, and according to this question: Subclipse svn:ignoreI have to delete it from my repository first. I am not sure what this exactly means. I cannot delete from the Springloops website, and inside Eclipse when I delete the binfolder it just is automatically recreated (of course).

当我右键单击我的项目的根文件夹,做Team -> Commit希望包括bin文件夹移到committ。是的,我之前已经提交过,根据这个问题:Subclipse svn:ignore我必须先从我的存储库中删除它。我不确定这到底是什么意思。我无法从 Springloops 网站删除,而在 Eclipse 中,当我删除bin文件夹时,它会自动重新创建(当然)。

How can I remove the binfolder from my commits?

如何bin从我的提交中删除文件夹?

回答by boltup_im_coding

I figured this out. I am an idiot. To save people future headaches, you need to go to the SVN Repositoryview in Eclipse (the top right hand corner by default, where it says Java, Debugetc. Delete it from THERE, then "update to head" and then you can right click and add to SVN:ignore. Then, this change should be committed.

我想通了这一点。我是一个白痴。为了避免人们以后的麻烦,您需要转到SVN RepositoryEclipse 中的视图(默认情况下右上角,它说的地方JavaDebug等等。从那里删除它,然后“更新到头”,然后您可以右键单击并添加到SVN:ignore. 那么,这个改变应该被提交。

回答by marekful

In you self answer, your are not really deleting the file/folder. In SVN, you have to commit the deletion. Depending on what version of SVN, Eclipse, SVNKit etc. you have it might be tricky or buggy via the GUI though.

在您自己的回答中,您并没有真正删除文件/文件夹。在 SVN 中,您必须提交删除。根据 SVN、Eclipse、SVNKit 等的版本,您可能通过 GUI 使用它可能会很棘手或有问题。