User Tools

Site Tools


tips:linux:svnimport
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


tips:linux:svnimport [2009/06/08 15:33] (current) – created erik
Line 1: Line 1:
 +====== 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