我正在尝试使用 TortoiseSVN 标记许多文件。将文件右键拖动到标签文件夹并复制版本化文件的首选方法(请参阅 http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-howto.html#tsvn-howto-move )会在提交时产生错误消息:
Your working copy apperads to be on a tag path!
You should first switch to a branch or the main trunk before committing.
Do you want to commit anyway?
在 TortoiseSVN 菜单中为一个文件使用 Branch/Tag 选项将起作用。但是在标记许多文件时别无选择。也没有机会标记整个项目,因为这会导致标记文件夹过于复杂。
如何摆脱这个错误信息?
最佳答案
我猜你有一个“tags”文件夹,你可以在其中添加/复制文件。检查this link消息的原因。
无论如何,实践是标记整个存储库而不是特定文件/文件夹。标记很便宜。在 tortoisesvn 中,您可以使用 branch/tag执行此操作的选项。
https://stackoverflow.com/questions/4623695/