简体   繁体   English

SVN 从待提交列表中移除文件

[英]SVN remove files from the to-be-committed list

I had set up ignore rules on my bin / object folders for my project.我在我的项目的 bin / object 文件夹上设置了忽略规则。 I then tried to do an add on all the other files with svn add *.然后我尝试使用 svn add * 对所有其他文件进行添加。 It seemed as if the ignore only applies to the svn status command so all my bin and object folder contents showed up.似乎忽略仅适用于 svn 状态命令,因此我的所有 bin 和 object 文件夹内容都显示出来了。 Now I have not done a commit on the list, but when I do an svn status I see all those nasty files ready to go when I send that command.现在我还没有在列表上进行提交,但是当我执行 svn 状态时,当我发送该命令时,我看到所有那些讨厌的文件都准备好 go。 Is there a way to remove them from that list or clear that list completely?有没有办法将它们从该列表中删除或完全清除该列表? Also, what is that list called?另外,那个列表叫什么? Thanks in advance!提前致谢!

svn revert bin

Would remove the bin directory from being added at the next commit.将在下一次提交时从添加的 bin 目录中删除。

Or if you would like to recursively revert (sometimes useful)或者,如果您想递归还原(有时很有用)

svn revert -R bin

You should revert the added files that you don't want committed.您应该还原不想提交的已添加文件。

To ignore those folders in the future, add them to the svn:ignore list of the parent folder .要在将来忽略这些文件夹,请将它们添加到 svn:ignore父文件夹列表。 Read all about ignoring unversioned items here . 在此处阅读有关忽略未版本化项目的所有信息。

If you have TortoiseSVN installed, you can use the explorer right-click menu context: TortoiseSVN, Unadd.如果你安装了 TortoiseSVN,你可以使用资源管理器右键菜单上下文:TortoiseSVN,Unadd。

Note: You'll only see unadd if, like in your case, you've tagged folder/file to be added.注意:只有在您已标记要添加的文件夹/文件时,您才会看到 unadd。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM