How to Use SVN for Drupal
Subversion (SVN) lets you create change-control setups, as well as version setups for your Drupal Web pages. Subversion is open-source and free, and it stores old versions of your site, so you can roll back changes in case of a buggy version upload. Subversion connects to your Drupal site's server and lets you perform commands to upload new files.
Instructions
-
-
1
Click the Windows "Start" button and type "cmd" in the search text box. Press "Enter" to open the command line.
-
2
Type the command that connects to the Drupal website. The following command is an example of a Drupal connection:
svn co https://drupalsite.com main --user - pass
Change the site, username and password values to your own credentials.
-
-
3
Upload new files to your Drupal site. The following command uploads the file "myfile.php" to the site:
svn add myfile.php
-
4
Edit an existing file. If you have some coding updates for your site, the following command uploads a file that already exists on the site:
svn up myfile.php
-
5
Remove a file from the system. The following command removes the file from your site:
svn delete myfile.php
-
6
Roll back changes, if you have errors on the site. The best feature of a change-control system is the ability to roll back any changes and revert to a previous version of an existing file. The following code reverts to a previous version for "myfile.php":
svn revert myfile.php
-
1