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.
- Import project into workspace
- Right click on project -> Team -> Disconnect
- 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:
- Right-click the folder you want to copy.
- Select "Team -> Copy To".
- Choose your destination folder in the dialogue box.
- Click the radiobutton "Copy resources without SVN history".
- 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 {} \;
精彩评论