How do I sync all the code in the SVN repository (for development purposes) with the live code I have running in /home/site/public_html/, as in overwrite whatever is in live with the new code from the SVN repo (assume the SVN repo location is in /usr/bin/svn/project, just for the sake of the argument, even though it’s probably far from that)?
Share
Just do an
svn checkoutorsvn exportin /home/site/public_html.Personally I have a checked out copy on my web server, and the repository is on the same machine. I then have a hook so that on a commit, I perform an
svn updatein the live directory, so that committing to the repository immediately makes the change live.