Unable to commit git repo

Viewed 2356

I am trying to commit my code from a Windows system into a git repository. But whenever I execute "git commit" command, I get the below error:

.git/hooks/pre-commit: line 11: py: command not found

Also tried adding the python path to the "Path" system vriables. But no resolution.

1 Answers

Py is the Windows Python launcher. It helps locating the correct Python version, in the case the system has installed multiple versions. You can find more information here.

Assure that you have checked the "Install py" option when installing python on your system.

enter image description here

Related