colab123
colab123

Reputation: 161

Unable to commit git repo

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.

Upvotes: 1

Views: 3457

Answers (1)

zanseb
zanseb

Reputation: 1425

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

Upvotes: 4

Related Questions