Initial Subversion (SVN) import
Posted by Max Dunn Sat, 28 Apr 2007 16:31:00 GMT
If you are using the SVN command line, here is a trick that makes it easier to import your files into Subversion. The problem with the usual method is that after importing your files, you have to check them out to a different directory, rather than continuing to work with them in the same location. This methods avoids that problem:
First, go to the directory you want to import. Use the “svn import” command with the -N option to only import the top level directory:
svn import . http://svn.maxwiki.com/svn/my_files -N -m "Initial" --username my_name
Now if you have any files in this top level directory, you will need to move them elsewhere to do this checkout:
svn checkout http://svn.maxwiki.com/my_files . --username my_name
Now, we need to add and commit all the other files
svn add *
svn commit -m "Initial"
That’s it! Your files are now committed to SVN and you can continue to work on them in the same location.