Remove SVN from existing Java project in Eclipse

I have a version of a Java project in Eclipse.

I decided to remove "SVN", so when I right-click > Team in a project, I can only get the following options: Share project ... and Create patch ... instead of commit ... , Update , etc.

What is the best (cleanest) method for removing version control from a project in Eclipse?

+7
source share
6 answers

If your project is properly versioned using SVN, you can see “Synchronize with repository”, “Commit”, “Refresh” in the “Command” menu item of the context menu. In this case, you can use Team > Disconnect .

If you do not see such menu items as in the Team menu, make sure that there is a .svn (hidden) directory in the project root directory.

Perhaps you can check the project from the repository again and use Team > Disconnect if you haven't changed the code much.

+21
source

Try recursively deleting all .svn folders from the project root folder. For example, on a Linux machine, you should specify the following command in the project root folder:

rm -rf `find. -type d -name.svn`

+3
source

You need to delete only the top level folder .svn. Then share the project and Eclipse is smart enough to delete all recursive .svn folders.

+1
source

One good approach to exporting an SVN project from a repository, instead of checking that the .svn folders will not have them, the local workspace can then be used to update in another branch or repository with a similar folder structure.

 svn export [-r REV] URL[@PEGREV] [PATH] Eg : http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.export.html 

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.export.html

0
source

You can delete .svn folders in your project:

  • Open terminal
  • cd "Your path to the project"
  • to find. -type d -name.svn -dethth -exec rm -rf {} \;
0
source

A simple solution:

Locate the .svn folder in the project directory. This is a hidden folder, so find it from File-> show hidden folder . Then uninstall it.

0
source

All Articles