Write and commit your code
With your code project stored in a local Git repository, you can commit as early and as often as you like. (Still no Internet access needed.)
-
As you write your code, your changes are automatically tracked by Visual Studio. To see what you've changed, compare your changes with the last commit.
-
You can commit your changes to your local repository from either Solution Explorer or from Team Explorer.
-
Add a comment and then commit your changes.
Tip: You can associate a work item with your commit by specifying its id in the comment. For example, these changes will be linked to work item 123.
Try this next
- Until now you have been working locally. You are now ready to publish your code into TFS.
Or, dig deeper
- Getting Started with Git in Visual Studio and Team Foundation Service
- You can specify how you identify yourself on the changes you commit. See Customize Git settings in Visual Studio.