User Tools

Site Tools


tips:linux:svnimport

Differences

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

Link to this comparison view

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