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 ▶
One Minute Information - by
Michael Wen
ADVERTISING WITH US - Direct your advertising requests to Michael
ADVERTISING WITH US - Direct your advertising requests to Michael