简体   繁体   English

如何在没有SVN元数据的情况下在Eclipse中克隆SVN管理的项目?

[英]How to clone an SVN-managed project in Eclipse without SVN metadata?

I have a Java project in Eclipse that is being managed by SVN (Subclipse). 我在Eclipse中有一个Java项目,该项目由SVN(Subclipse)管理。 I want to make an exact copy of the project, but with a different name, and I don't want to copy over any SVN metadata. 我想复制项目的确切副本,但是使用不同的名称,并且我不想复制任何SVN元数据。

In other words, myProject is a working copy of a project hosted in an SVN repo. 换句话说, myProject是SVN存储库中托管的项目的工作副本。 I want to make myProject-clone but such that myProject-clone is not also a working copy of the SVN project. 我想制作myProject-clone但是myProject-clone也不是SVN项目的工作副本。

How can I do this? 我怎样才能做到这一点?

Just use the svn export command. 只需使用svn export命令。 Also you could try 你也可以尝试

copy-item $source -destination $dest -exclude *.svn -recurse 复制项目$ source-目标$ dest-排除* .svn -recurse

I would go to your folder where the plugin is located copy the plugin and paste into a temp folder. 我将转到插件所在的文件夹,将插件复制并粘贴到temp文件夹中。 then in that temp folder assuming you are using windows search for *.svn and then select all search results and that will remove all the svn metadata. 然后在该临时文件夹中,假设您正在使用Windows搜索* .svn,然后选择所有搜索结果,这将删除所有svn元数据。 There might be other ways but that is how I have done it before. 可能还有其他方法,但这就是我以前做过的方法。 One other approach would be to "disconnect" project and select clear all svn metadata then recheck out 另一种方法是“断开”项目并选择清除所有svn元数据,然后重新签出

如果您使用的是Mac,* nix或具有rsync其他环境,则可以传入-C参数以忽略SVN / CVS元数据:

rsync -avC /path/to/working_dir /path/to/copy_dir

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM