Checking files out and back in
Checking a file out means downloading the latest version of the file from the source control server and, at the same time, locking the master copy on the server so that other team members cannot replace it. When you have finished editing a checked-out file, you should check it back in—that is, upload the new version to the source control server, replacing the master copy and unlocking it.
To check files out
- Switch to the Site Manager and connect to the source control server.
- In the Site Files pane, select the files to be checked out. (Note that any desired files in subfolders must be explicitly selected. Selecting the folder itself will not work. Also, you cannot check out a file that is not under source control.)
- On the Source Control menu, click Check Out.
- Confirm that the desired files are selected in the file list. To exclude any file in the list from being checked out, deselect it.
- Click OK.
When the files have been successfully checked out, a padlock-and-key icon will appear in the Source Control column of the Site Files list for each checked-out file, as in the example below:
Checked-out files are indicated with a packlock-and-key icon
To check files in
- Switch to the Site Manager and connect to the source control server.
- In the Site Files pane, select the files to be checked in. (Note that any desired files in subfolders must be explicitly selected. Selecting the folder itself will not work. Also, the files to be checked in must have check-out status, as indicated by a padlock-and-key icon .)
- On the Source Control menu, click Check In.
- Confirm that the desired files are selected in the file list. To exclude any file in the list from being checked in, deselect it.
- If you want to update the master copies on the server but keep the files checked out so that you can continue to work on them, select the Keep these files checked out check box.
- Click OK.
When a file has been successfully checked in, the padlock-and-key icon in the Source Control column of the Site Files list will revert to a padlock icon .