Visual studio with git

Kummari, Rani 66 Reputation points
2022-05-10T20:01:14.123+00:00

I have installed VS 2019 some time back and recently installed VS 2022. I have chosen ASP.net and web development as workloads during install. After install I see that Git tab is present in the VS environment. I have been using connecting to local repositories and deploying to remote devops repository. I recently wanted to use Git command prompt and when I opened and ran git command, it says Git is not installed. When I checked the programs and features Git is not installed and I don't Git folder in program files. I'm not sure how I was able to use Git from VS (I have a local repo folder and its is connected Azure remote repo), but Git is not installed. How to resolve this problem, I want to make sure Git is installed and use command prompt. Can I select Git individual install from visual studio installation now? Will it cause any problem to already existing repositories?

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-05-10T20:44:30.353+00:00

    The version of Git that ships with VS is for VS and its dev prompt. It is not added to your system path such that it would work elsewhere.

    If you want to be able to run Git outside of VS you'll need to install it like you would on any other machine. The installation process is here. Ensure that it gets added to your system path so you can use it.

    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.