更新到最新版本后,我的 Mac OS 中出現以下提交錯誤。嘗試重新啟動 VS Code 并嘗試使用終端和相同的錯誤。直到git add .步驟它作業正常。只有提交命令不能正常作業。可能是什么問題?

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
uj5u.com熱心網友回復:
我發現了這個問題。我pre-commit從目錄中洗掉了檔案.git并解決了這個問題。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/451141.html
