Christine Ross wrote:
> I have an existing web site project that the developers now want to put
> into subversion.
let me give you a very simple example. Say I've got folder ~/foo that I want
to put in subversion. I already have a repository, and I can reach it at URL
http://my.com/repos/. (You can also try URL file:///abs/path/to/repos )
Then these commands are my preferred way to put 'foo' under version control:
# see if the repos is really there:
svn info http://my.com/repos/
# get a working copy. You can use --depth=immediates when your repos
# is full of stuff you don't want to download.
svn checkout http://my.com/repos working-copy
# Optional: make some structure
svn mkdir working-copy/trunk
# copy the folder foo into trunk
cp -a ~/foo working-copy/trunk/
# Optional: clean out files that shouldn't go under version control
# add and commit, so that the stuff goes to the server
svn add trunk/foo
svn commit -m "Initial commit of foo."
You need to get familiar with working copies, and while I don't recommend
reading the *whole* Subversion book end to end, it is in fact the best place
to find out the stuff I just wrote here.
Also see: http://subversion.tigris.org/faq.html#website-auto-update
> There is no version control, just an
> /usr/local/apache2/htdocs/docsite directory. This is a solaris 10
> server. I have done a *useradd –d /home/subversion –m svn*, and
> *svncreate create /home/subversion/repos*. I’m working on the apache
> The documentation talks about importing a project? Do I have to somehow
> bring this /usr/local/apache2/htdocs/docsite directory into
> I saw this but how would it know what to do with all the files and
> directories in the current DocumentRoot that contains all the files for
> the application being put under subversion control?
> $ cd /home/subversion/repos
> $ mkdir myproject_svn myproject_svn/tags myproject_svn/branches
> $ mv myproject myproject_svn/trunk
> $ svn import myproject_svn http://localhost:8080/svn/repos/myproject
> Can I make another directory under repos for that particular project?
> Currently my httpd.conf have SVNPath and not SVNParentPath.
> Any help is apprecaited?
> Thank you
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-04 23:12:06 CET