Home > Net >  Git commit issue after updating Mac OS
Git commit issue after updating Mac OS

Time:03-29

I am getting the below commit error in my Mac OS after updating to the latest version. Tried restarting VS Code and also tried to use terminal and same error. Until git add . step it works fine. Only the commit command is not working fine. What could be the issue?

enter image description here

 git commit -m "Commit message"
.git/hooks/pre-commit: line 15: python: command not found
.git/hooks/pre-commit: line 16: python: command not found

CodePudding user response:

I found the issue. I removed the pre-commit file from the .git directory and that fixed the issue.

  • Related