question

KummariRani-8976 avatar image
0 Votes"
KummariRani-8976 asked cooldadtx answered

Visual studio with git

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?

vs-generalvs-setup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.