After a file has been added to source control, you must generally check out the file before you can modify it. When you check a file out of source control, the source control provider creates a copy of the latest version on your local disk and removes the file's read-only attribute.
You can use Visual Studio to check out files manually or automatically. You check out files manually by opening the solution that contains the files in Visual Studio and then clicking the Check Out command. Optionally, you can configure Visual Studio to automatically check out any file that you begin to edit.
Depending on the options that your administrator sets on your source control provider, you can also check out files in exclusive or shared mode.
When you check out a file exclusively, only you can modify it, and no other user can check out the file until you check it in.
When you check out a file in shared mode, any number of users can check out the same file. As each user checks in the file, the source control provider attempts to merge the file with the latest server version of the file. If conflicts arise between the version being checked in and the latest version, the source control provider prompts the user to resolve the conflicts.
In This Section
- Checking Out Files
- Provides instructions on how to check out a file so you can modify it.
- Undoing Checkouts
- Explains how to cancel an existing checkout.
- Automatically Checking Out Files Upon Edit
- Explains how to configure source control to check out a file when you start to edit it.
- Managing Checkins
- Explains how to check a file in to source control to make it available to other users.