User Tools

Site Tools


How to import an existing project in Subversion

I always forget how to import an existing project directory in Subversion, so here are the steps.

First, create the directory in the repository:

svn mkdir file:///path/to/repos/mydir

Second, checkout the repos directory:

cd /path/to/mydir
cd ..
svn checkout file:///path/to/repos/mydir

Third, add the directory content:

cd mydir
svn add *

Last, perform the initial import:

svn commit -m "Initial import."
tips/linux/svnimport.txt · Last modified: 2009/06/08 15:33 by erik