开发者

AnkhSVN Newer Copy on Local

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


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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜