我有一些 python 代码格式化程序作为 git 预提交挂钩,并且我已将我的 python 版本更改为
brew list | grep python
[email protected]
[email protected]
brew unlink [email protected]
brew unlink [email protected]
brew link [email protected]
python -V
Python 3.7.9
并知道似乎有些东西被破坏了,在 git commit 上我得到了env: python3.9: No such file or directory
,那么什么是env
?以及我如何编辑它以使用[email protected]
?
In .git/hooks/pre-commit
I have
#!/usr/bin/env python3.9
和跑步pre-commit install
将其固定为#!/usr/bin/env python3.7
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)