Follow this Blog!

Feb 3, 2011

f Comment

Create An SVN Project On An SVN Server

MenuCheck Out SVN In Eclipse On Windows
Create An SVN Project On An SVN Server
Download And Install TortoiseSVN
Check Out SVN Project Via TortoiseSVN
Validate SVN Integration With Eclipse
Amazon Let's assume your SVN server is running on Linux and you'd like your repository to be /home/michaelwen/svn. Subversion uses this directory to store your projects. In fact Subversion stores your projects in the form of database files. If you are curious go in and take a look after you create a repository and import some project into it.

You won't need to directly deal with this /home/michaelwen/svn; so let's keep it in a safe place and not mess with its contents unless you know what you are doing.
The command to create an SVN repository is the following:

svnadmin create /home/michaelwen/svn
Suppose you keep your code in ~/localproj directory and you'd like to put the contents of ~/localproj in your SVN repository. Here's the command:

svn import ~/localproj file:///home/michaelwen/svn/myproj
This command will import all contents of ~/localproj into SVN repository which is identified by file:///home/michaelwen/svn/myproj.

file:///home/michaelwen/svn/myproj is NOT a directory on your file system. file:///home/michaelwen/svn/myproj is an identifier used as part of an SVN url in order for SVN server to know what project you'd like to operate on (checkout, etc.)
Next we need to the SVN server so that your SVN project can be checked out remotely. Here's the command:

svnserve -d
Without running the SVN server you can still work with SVN (e.g. check out code) locally, but you won't be able to check out code remotely.

Next we'll install a wonderful SVN client!

◀ Check Out SVN In Eclipse On WindowsDownload And Install Tortoisesvn ▶
Please leave a comment here!
One Minute Information - by Michael Wen
Find Michael on Google or Facebook
ADVERTISING WITH US - Direct your advertising requests to Michael