Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
所有文件夹都包含隐藏的
.svn
文件夹。当你移动它们时,是的,可能会出现问题。如果您仅使用 TortoiseSVN 上下文菜单来移动内容,则不会遇到这些问题。如果您喜欢从 IDE 移动文件夹,请使用 AnkhSVN,这是一个很棒的 Visual Studio扩展,将类似 TortoiseSVN 的选项集成到解决方案资源管理器窗口中,并跟踪 IDE 中所做的更改。
最后,如果您对 Subversion 处理移动、重命名和合并的方式不满意,您可能需要研究更现代的版本控制系统。 Git 非常棒,但需要花费一些精力来学习,而且 AFAIK 在 Windows 上没有很好的支持。 Mercurial 可能正是您所需要的,因为它比 Git 更容易并且具有更好的 Windows 支持。
Git 和 Mercurial 都在项目根目录下使用单个目录来存储数据,因此您永远不会因移动文件夹和文件而损坏工作副本。
查看 Joel Splosky 的 Mercurial 指南 和 Mercurial 和 Subversion 之间的差异。
All folders contain hidden
.svn
folders. When you move them, yes, there may be problems. If you only use TortoiseSVN context menu to move stuff, you won't have these problems.If you prefer to move folders from the IDE, use AnkhSVN, which is an awesome Visual Studio extension that integrates TortoiseSVN-like options into Solution Explorer window and tracks changes made in the IDE.
Finally, if you're not satisfied with how Subversion handles moves, renames and merges, you may want to look into more modern version control systems. Git is fantastic but takes some effort to learn and AFAIK doesn't have a good support on Windows. Mercurial may just what you need, as it's easier than Git and has a better Windows support.
Both Git and Mercurial use a single directory at the root of your project to store their data so you will never corrupt a working copy by moving folders and files around.
Check out Joel Splosky's guide to Mercurial and differences between Mercurial and Subversion.
VisualSVN 与 Visual Studio 集成以自动执行文件重命名/删除、忽略列表等。
VisualSVN integrates with Visual Studio to automate file renames/deletes, ignore lists, etc.