Aug 21, 2012

f Comment

Import an Existing Directory into SVN

MenuSVN+SSH Between Eclipse and Amazon EC2
Unblock SVN Port 3690 in Amazon EC2
Install & Configure SVN on Ubuntu
Import an Existing Directory into SVN
Checkout an SVN Project For Web Server
Checkout an SVN Project In Eclipse For Development
Use SSH as SVN Protocol Tunnel With TortoiseSVN
Amazon In this tutorial we will import an existing directory into your SVN program so that it becomes source controlled. A common use case is that you are running a web server which serves content out of this SVN project. Meanwhile you are developing off of this project to make constant improvements on your website.

Let's suppose ~/repository/ directory contains files you'd like to put in SVN repository.

Make sure this existing directory contains NO .svn directories! If so they are probably stale and you should delete them to avoid corrupting your SVN status while doing the import. To remove every .svn simply run this command:

find . -type d -name .svn -exec rm -fr {} \;

Run the following command.

% sudo svn import ~/repository/ file:///svnrepos/repository
What happens as far as permissions go when you check out this repository? You are getting the same set of permissions as the original directory but the owner and group of every file becomes the user who checks out the repository!
Questions? Let me know!

◀ Install & Configure SVN on UbuntuCheckout an SVN Project For Web Server ▶
Please leave a comment here!
One Minute Information - by Michael Wen
ADVERTISING WITH US - Direct your advertising requests to Michael