Visual StudioVisual Studio with GitEclipseXcode

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.)

  1. 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.

    VSGitCodeWrite01
  2. You can commit your changes to your local repository from either Solution Explorer or from Team Explorer.

    VSGitCodeWrite03
  3. Add a comment and then commit your changes.

    VSGitCodeWrite04

    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.

    VSGitCodeWrite05

Try this next

Or, dig deeper