Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,290
Community Members
 
Community Events
168
Community Groups

I installed Git, then I am trying to check the git version on VSCode, but it's giving me error.

I use the git --version to run the command on VSCode but its showing error, please how can I check the version?

1 answer

1 vote
Jimmy Seddon Community Leader Feb 08, 2021

Hi @Esther Anyanwu,

Welcome to the Community!

I would try first running the command outside the context of VSCode.  I would recommend opening up a terminal session, or on Windows use either a Command prompt or PowerShell.

Run the same command again and you should get a response that looks like this:

GitVersion.PNG

Could you also provide the error you are getting if that doesn't work as that will help in getting to the root of your issue.

I hope that helps!

-Jimmy

Thank you for your response, I used a command prompt to run it now, this is the response I am getting  'git' is not recognized as an internal or external command,
operable program or batch file. Please what next am I to do?

Jimmy Seddon Community Leader Feb 08, 2021

Ahh!  That sounds like you don't have the location of Git registered in your PATH environment variable properly.

If you press the windows key and start searching for "environment" then click on the "Edit the system environment variables" option that comes up.

You will be taken to a dialog box with an Environment Variables button on it, click that.

In the new window, under system variables, locate the "Path" variable, select it and click the edit button.

In the new popup window you will want to click the new button to add a new entry, and then you are going to want to add the location you installed git to.  By default, it it's going to be something like: "C:\Program Files\Git\cmd"

Once done, click OK on everything to exit and you should be all set to go.

I hope that helps!

-Jimmy

Wow, the last solution you gave to me worked, I am so happy. Thank you so much, I appreciate you, God bless you.

Like Jimmy Seddon likes this
Jimmy Seddon Community Leader Feb 08, 2021

Awesome! always happy to help!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events