开发者

How to copy an eclipse project without svn info

开发者 https://www.devze.com 2023-03-25 15:59 出处:网络
I would like to create a copy of an svn-controlled project in eclipse, but without the svn metadata. Is there any way 开发者_StackOverflow社区to do this?You want the svn export command.

I would like to create a copy of an svn-controlled project in eclipse, but without the svn metadata. Is there any way 开发者_StackOverflow社区to do this?


You want the svn export command.


  1. Import project into workspace
  2. Right click on project -> Team -> Disconnect
  3. Select "Also delete the SVN meta information from the file system."

Your project is now disconnected with no SVN meta information on your local file system. You can copy paste all files needed.


If you want to copy your folder from one project into another, in the Project Explorer:

  1. Right-click the folder you want to copy.
  2. Select "Team -> Copy To".
  3. Choose your destination folder in the dialogue box.
  4. Click the radiobutton "Copy resources without SVN history".
  5. Click OK

You should see the folder in the new location.


Just in case you do not want to use svn export: Copy the Project folder as usual. Then run the following from project's directory :

find . -name ".svn" | xargs rm -f


Copy and then run the following from project's directory :

find . -name '.svn' -exec rm -r {} \;
0

精彩评论

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