Adding a Project to SVN in Eclipse

This happens to me a lot. I’ll be working away on some test application in Eclipse, and after a bit of tinkering I’ll realize that the code is actually good enough to commit into the repo. So what do you do?

Well back when I didn’t know anything about Subclipse, I’d actually checkout the repo as a project, copy my code into the project, then do a SVN commit. Its convoluted, its annoying, and its stupid.

There’s actually an easier way to add projects to svn control, and I only had to bug Derek 1000x to find out!

  1. In the Package Explorer, right-click on the package, and go to Team -> Share Project…
  2. Work through the wizard that comes up, its pretty basic, select the kind of repo (CVS/SVN), select or add your repo, etc.
  3. When you’re done, the project will be linked with the repo.  You can now Commit/Team Synchronize project files to your heart’s content!
This entry was posted in Eclipse, Tech and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>