AnkhSVN 本地较新副本

发布于 2024-10-16 11:25:26 字数 119 浏览 4 评论 0原文

我开始处理一个项目,但没有为 SVN 设置它。我正在使用 Visual studio 2008 和 AnkhSVN。现在我的本地有新的代码副本,而 SVN 有旧的副本。我应该如何检出这些文件并提交它们?

谢谢

I started to work on a project without setting it up for SVN .I am using Visual studio 2008 and AnkhSVN. Now I have new copy of code on my local and SVN has older copy.How should I checkout those files and commit them?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑饮青盏花 2024-10-23 11:25:26

最简单的可能是使用命令行客户端(或具有类似选项的 TortoiseSvn)。您希望在强制标志打开的情况下进行结账:

svn co --force <URL> <WC>

来自帮助:

If --force is used, unversioned obstructing paths in the working
copy destination do not automatically cause the check out to fail.
If the obstructing path is the same type (file or directory) as the
corresponding path in the repository it becomes versioned but its
contents are left 'as-is' in the working copy.  This means that an
obstructing directory's unversioned children may also obstruct and
become versioned.  For files, any content differences between the
obstruction and the repository are treated like a local modification
to the working copy.  All properties from the repository are applied
to the obstructing path.

The easiest is probably with the command line client (or TortoiseSvn with similar options). You're looking to do a checkout with the force flag on:

svn co --force <URL> <WC>

From the help:

If --force is used, unversioned obstructing paths in the working
copy destination do not automatically cause the check out to fail.
If the obstructing path is the same type (file or directory) as the
corresponding path in the repository it becomes versioned but its
contents are left 'as-is' in the working copy.  This means that an
obstructing directory's unversioned children may also obstruct and
become versioned.  For files, any content differences between the
obstruction and the repository are treated like a local modification
to the working copy.  All properties from the repository are applied
to the obstructing path.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文