To commit changes to Git repository, right click the project in the solution explorer and select menu "Git - Pending Changes".

  • New, modified and deleted files are shown in the Changed Files list.
  • Select the files you want to commit. The diff view on the right side shows the details of what has been changed compare to last commit.
  • Add comment message and click the “Commit” button.

image

The files status are shown as being Git tracked after commit.

image

You can also amend last commit or commit to new branch.

To amend last commit, click the “Amend Last Commit” button. it loads the last commit’s comment message in case you want to modify it. Select files to commit and click the “Amend Last Commit” button to Amend the commit.

To commit to another branch or a new branch, click the “Commit to Branch” button. A dialog popups allowing you select another branch or create a new branch.

image

Notice the branch name in solution explorer title bar and the pending changes window title bar changes to reflect the current branch name after commit.

image

Using the History view,  you can view the commit history.

Last edited Nov 12, 2011 at 2:35 PM by yysun, version 4

Comments

blaster151 Apr 28, 2013 at 11:36 PM 
I have similar problems to DougRoyer; I tried the advice from casper_wilkes here, and it got me a little further - it appeared to accept a commit, but when I went back to the command line, no commit had happened. I can't get it to work; have to return to the command line for now. Too bad!

casper_wilkes Mar 9, 2013 at 9:01 AM 
@DougRoyer I was confused for a moment as well. You have to make sure that the check box in the changed file box is checked. For your initial commit, there are no selected files, so you must remember to check the "check all" checkbox at the top of the list. This will select them all, then put in your initial commit message, and then hit commit.
If you went ahead and already put a message in and hit commit, you get the error box. If you go ahead and check the boxes anyways, the commit box is still unclickable. you have to refresh the menu for the commit option to come back.
Hope that helps.

DougRoyer Feb 16, 2013 at 11:26 PM 
When I press the 'Commit' button, a pop-up says 'no file has been staged for commit'.
I have no idea what that means.
I noticed if I right click on a file, there is a 'Stage File' menu option. I tried pressing that and retrying.
No luck, I can not figure out what 'state file' means or how to commit. It seems busted to me.