Add To Version Control

This function is initiated via the Team > Add to Version Control menu option.

Overview

When you share a project for the first time, or when you add or import new resources to a project, you need to tell SVN that you want them under version control.

Process

To do this, find and select the unversioned resource(s) that you want to add. These will typically be decorated by a little question mark in the Navigator view. Once you execute the Add to Version Control process, the decoration will change to a small blue plus. This indicates that your resource is scheduled for addition to the repository on the next commit.

This operation does not contact the repository. Also, if the resources parent folder is not under version control, it will be added as well (all the way up to the project root, as needed).

Reverting files added in error

If you add something to version control you didn't want to, don't panic; you can always undo (Revert) your changes. Reverting the added resource is often preferred over deleting the resource, since it is only the 'added'-state that you revert, not the creation of the file itself.

When you commit your changes back to the repository, you can short-cut the Add command by simply checking the unversioned resources in the commit dialog resource list. A preference setting controls whether or not unversioned resources are checked by default during the commit operation.