Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2017 - Team Explorer Commit - Shortcut

What is the fastest way to commit into git from VisualStudio with and/or without TeamExplorer setup.

Currently I have to:

  1. Ctrl+\,Ctrl+M
  2. Enter
  3. Switch to changes
  4. Tab,Tab
  5. Write a commit message
  6. Ctrl+Q,Ctrl+S (custom shortcut for Team.Git.CommitAndSync)
like image 819
Michal Ciechan Avatar asked Mar 09 '17 21:03

Michal Ciechan


People also ask

How do you commit changes in Team Explorer?

Open the Changes view from Team Explorer by selecting the Home button and choosing Changes. Enter a message that describes the commit, and select Commit All.

How do you commit in vs studio?

Just enter your commit message and then select Commit All. The equivalent command for this action is git commit -a . Visual Studio also makes it easy to commit and sync with one click by using the Commit All and Push and Commit All and Sync shortcuts.

What is Visual Studio Team Explorer?

Team Explorer connects Visual Studio to Git and GitHub repositories, Team Foundation version control (TFVC) repositories, and projects hosted on Azure DevOps Services or an on-premises Azure DevOps Server (formerly known as TFS). You can manage source code, work items, and builds.


1 Answers

  1. The default key binding to go straight to the Git Changes page in Team Explorer is Ctrl + 0,G. The command is Team.Git.GoToGitChanges if you'd like to bind it to a different key.

  2. Tab, Tab to reach the commit message textbox.

  3. Write your commit message.

  4. Usually followed by Alt + I to trigger the Commit button, but a custom key binding for the Commit and Sync command is needed in your scenario.

Hope this helps.

like image 166
Chad B Avatar answered Sep 30 '22 20:09

Chad B