You can add Git commands to your main menu bar in Visual Studio.
For today’s example, you’ll see me add a Git menu with a command to open Git Bash in a command prompt.
Part 1 – Add Git Bash as an External Tool
I promised myself I wouldn’t blog about VS tips in this series. I’m sure if you searched you’ll find my old posts how the External Tools works 🙂
Just note the order in which Git Bash is listed above. In my example, it is External Tools 3. This will be needed in a second.
Part 2 – Create a Git menu in VS
Same story as above. I’m certain you can find my ancient posts, so here’s the quick version. Go to Tools – Customize – Commands
Then click Add New Menu and click Modify Selection (yeah, that’s some ancient UI) to give it a name, e.g. Git, and an icon and such if you want.
Lastly, switch the Menu bar: to Git (or whatever you called your menu). Click Add New Menu and select Tools – External Command <your number from above>
And you should be good to go!
Thanks again to Ed’s O’Reilly course on Git for Visual Studio for the inspiration!