Snapshot and share your code in TFVC
Add your projects to version control to snapshot versions of the code and to share the code with your team. Here, we'll show you how to use Team Foundation Version Control. You can also use Git with Visual Studio Online.
If you keep your code in Visual SourceSafe, you can upgrade to use Visual Studio Online. How?
Do you have version control history in your on-premises TFS that you want to migrate to your Visual Studio Online account? Learn how to do that here.
Open the solution
If you haven't already, connect to your Visual Studio Online account and create your workspace folder.
Move the code you want to upload to the workspace folder.
Open your solution in Visual Studio.
Add the solution to Visual Studio Online
Add your solution to version control.
Check in the solution.
Add a comment and check in.
Open the source control explorer.
Your solution is now in TFS.
Your whole team can work on the code now. All your changes are tracked in version control.
Snapshot your code
When you edit code in Visual Studio, the changed file is automatically checked out. For example, Site.css is checked out after the border color has been changed to #ddd.
Compare the modified file with the latest version in source control.
You can see the difference between the two versions.
Check in the changes.
You can also check in from the code window, or the team explorer.
If you're working on a task or fixing a bug that's tracked as a work item, add that work item to your pending changes. Source control will resolve the bug or close the task, and it'll link the changeset to the work item.
Add a comment and check in.
Open the source control explorer.
View the history of the file you changed.
All the changesets that include this file are listed.
Try this next
False