September 12, 2022

Fix "The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program." error while using PyCharm

  September 12, 2022
If git is not confiugured correctly, we may get the following error in PyCharm while trying to execute any git command.

git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

To fix this issue, check whether Git is installed on your computer.

To check this go to command prompt and enter the below command

git version

It will give a value as below if git is installed in your system.


If we are still getting the error, we need to check the git Path in Environment Variables.
There we need to add the path on the installed git folder in system variables.

To get the environment variables screen.
Go to My computer > Right click and select Properties
Click on Advanced system settings


Select the Environment Variables button from the next screen


And add the following paths of git in the system variables 

C:\Program Files\Git\bin\
C:\Program Files\Git\cmd\


**Path should be the git installed folder in your system.


Once this is done, don't forget to restart  PyCharm or any IDE you use. This restart will ensure the correct path is used.

logoblog

Thanks for reading Fix "The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program." error while using PyCharm

Previous
« Prev Post

No comments:

Post a Comment

How to send email from current Outlook instance using Java + VBScript

If we are using .Net, we can easily access outlook and send emails using its own libraries. But what if we are using Java? Here we can seek ...