通过 Tortoise 从 SVN 删除文件/文件夹:如何?
我在 svn 存储库的单独文件夹中有一些代码项目。
现在我在删除文件时遇到一些问题:大多数时候一切顺利,但有时当我从磁盘删除文件或文件夹时,签入过程会给我带来各种错误。
所以我想知道:在svn源代码控制下删除文件夹的具体方法是什么?
我是否只需在资源管理器中删除它们,然后提交主文件夹,或者我是否必须右键单击该文件夹,然后?
这似乎是一个微不足道的问题,但是删除文件给我带来了很多 svn 的麻烦(对于其余的我真的很满意)。
i have some code projects in separate folders in a svn repository.
Now i have some problems with deleting files: most of the times all goes well, but sometimes when i delete a file or folder from disk the checkin process gives me all kind of errors.
So i was wondering: what exactly is the way to delete folders under svn source control?
do i just delete them in the explorer and then commit the master folder, of do i have to rightclick the folder, and then ?
It seems a trivial question, but deleting files is giving me so much troubles with svn (for the rest i'm realy happy with it).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
右键单击文件/文件夹->乌龟SVN->删除。
然后提交。
Right click file / folder -> TortoiseSVN -> Delete.
And then commit.
正式地。您应该对工作副本中的所有文件和文件夹使用“TortoiseSVN->Delete”上下文菜单。
实际上,TortoiseSVN 也支持直接文件系统删除,但您必须在提交对话框中手动选中该复选框。文本状态将显示“丢失”,而不是通过“删除”命令删除目录/文件时显示的“已删除”。
请注意,svn-commandline 仅支持使用 svn delete 或 svn rm 的“官方”方式。
另请注意,目录不会从您的工作副本中删除,但文件夹会标记为删除,直到您提交删除。这就是为什么您无法添加同名的文件或新文件夹的原因。您必须先提交删除。
Officially. you should use for all files and folders in your working copy the "TortoiseSVN->Delete" contextmenu.
In reality, TortoiseSVN supports direct FileSystem-deletes as well, but you have to select the checkbox manually in your commit dialog. The Textstatus will show "missing", instead of "deleted" which will be shown if you delete directories/files by the Delete command.
Note that svn-commandline only supports the "official" way by using svn delete or svn rm
Also note that Directories will not be removed from your workingcopy but the folders are marked as deleted until you commit the delete. Thats why you cannot add a file or new folder with the same name. You have to commit the delete first.
我使用 Tortoise SVN 在 Windows 本地主机上进行开发,并且从 SVN 删除文件/文件夹时从未遇到过问题。我只需在运行提交之前将文件发送到回收站,即可从本地副本中删除这些文件。只是,请注意不要同时删除(默认隐藏的).svn 文件夹!它们必须在提交期间保留。
I develop on a Windows localhost with Tortoise SVN, and I've never had a problem deleting files/folders from SVN. I simply delete the files from my local copy by sending them to the recycle bin before running a commit. Only, be careful to not also delete the (hidden by default) .svn folders too! They must be kept in during the commit.