From the course: Visual Studio Tips and Techniques for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add keyboard shortcuts for Git commands

Add keyboard shortcuts for Git commands - Visual Studio Tutorial

From the course: Visual Studio Tips and Techniques for Developers

Start my 1-month free trial

Add keyboard shortcuts for Git commands

- [Instructor] Visual Studio 2019 has this new Git menu. It has most of the common Git operations like Commit or Stash, Pull, Push, adding new branches, and so on. This is a nice addition, this menu but it has one shortcoming, at least for me. I like using keyboard shortcuts and there aren't many available. I only see one for Commit, Ctrl + 0, Ctrl + G. One of the operations I perform a lot is Pull, so let's look at how to add a keyboard shortcut. If you're not familiar with creating your own keyboard shortcuts, you're in the right place. First step, is to go to Tools, Options. And we'll search for keyboard. (typing) Here it is, environment keyboard. And then, I'm going to look for Pull. (typing) This shows all the commands that are available in Visual Studio. I filtered it down to the commands that contain the word pull, and I see there's GitHub Pull Request, Git Pull, Git Pull Selection, and the one I want is…

Contents