Command line Git in VS2019

JamesBurgess 21 Reputation points
2020-11-24T19:13:35.927+00:00

I'd like to use git on a command line and now VS2019 includes git these instructions are no longer applicable https://devblogs.microsoft.com/devops/use-the-git-command-prompt-to-supplement-visual-studio/

In VS2019 if I choose Git->Open Repository in->Command Prompt I expected it to have my path set to include git.exe but it does not, it just opens a command prompt at the top of the local repo.

I found a pile of things in C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\ but it's not clear which one, if any, I should use.

  • James
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,416 Reputation points
    2020-11-25T06:33:37.067+00:00

    Hi JamesBurgess,
    Thank you for your feedback.

    I have tried it on my side, the git.exe could be called in command prompt which is opened by Git->Open Repository in->Command Prompt. So please try to re-install your git extension in you visual studio, and update your visual studio to latest version.
    42593-image.png

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**


  2. Karen Payne MVP 35,426 Reputation points
    2021-01-25T13:12:27.303+00:00

    Have you tried "Open in Terminal" ?

    60185-11111111111.png

    60197-11111111111-1.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.