Set up an svn connection, Get the latest versions of files – Adobe Dreamweaver CC 2015 User Manual
Page 124
117
File management
Last updated 6/3/2015
Set up an SVN connection
Before you use Subversion (SVN) as a version control system with Dreamweaver, you must set up a connection to an
SVN server. You set up a connection to an SVN server in the Version Control category of the Site Definition dialog box.
The SVN server is a repository of files from which you and other users can get and commit files. It is different from the
remote server you typically use with Dreamweaver. When using SVN, the remote server remains the “live” server for
your web pages, and the SVN server exists to hold the repository of files over which you want to maintain version
control. The typical workflow is to get and commit files back and forth between the SVN server, and then publish them
to your remote server from Dreamweaver. The remote server setup is completely separate from the SVN set up.
You must have access to an SVN server and an SVN repository before you begin this set up. For more information about
SVN, see the Subversion website at
.
To set up the SVN connection, follow these steps:
1
Choose Sites > Manage Sites, select the site you want to set up version control for, and click the Edit button.
Note: If you haven’t already set up local and remote folders for a Dreamweaver site, you’ll at least need to set up a local
site before proceeding. (The remote site is not required at this stage, but you will eventually need to set it up before
publishing your files to the Web.) For more information, see
2
In the Site Setup dialog box, select the Version Control category.
3
Select Subversion from the Access pop-up menu.
4
Set access options as follows:
• Select a protocol from the Protocol pop-up menu. The available protocols are HTTP, HTTPS, SVN, and
SVN+SSH.
Note: Using the SVN+SSH protocol requires special configuration. For more information, see
.
• Enter the address for the SVN server in the Server address text box (typically in the form of
servername.domain.com).
• Enter the path to your repository on the SVN server in the Repository path text box (typically something like
/svn/your_root_directory. It is up to the server administrator to name the root folder for the SVN repository.)
• (Optional) If you want to use a server port other than the default server port, select Non Default and enter the
port number in the text box.
• Enter your SVN server user name and password.
5
Click Test to test your connection, or click OK to close the dialog box. Then click Done to close the Manage Sites
dialog box.
Once the connection with the server established, your SVN repository is available for viewing in the Files panel. To view
it, you can select Repository View from the View pop-up menu, or click the Repository Files button
in the expanded
Files panel.
Get the latest versions of files
When you get the latest version of a file from the SVN repository, Dreamweaver merges the contents of that file with
the contents of its corresponding local copy. (In other words, if someone else has updated the file since you last
committed it, those updates are merged into the local version of the file on your computer.) If the file does not yet exist
on the local hard drive, Dreamweaver simply gets the file.