小编Kri*_*thy的帖子

更新 Mac OS 后 Git 提交问题

更新到最新版本后,我在 Mac 操作系统中收到以下提交错误。尝试重新启动 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
Run Code Online (Sandbox Code Playgroud)

git commit pre-commit-hook git-commit

-3
推荐指数
1
解决办法
4982
查看次数

标签 统计

commit ×1

git ×1

git-commit ×1

pre-commit-hook ×1