按照预提交的网站上的“非管理安装”说明,我运行了以下命令:
curl http://pre-commit.com/install-local.py | python这些说明提供了以下注意事项:“(升级:再次运行,卸载:将卸载传递给python)。
现在,我想卸载预提交。我正在努力理解如何将卸载传递给Python。我不知道通过uninstall意味着什么。
我试过:
curl http://pre-commit.com/install-local.py | python --uninstall
curl http://pre-commit.com/install-local.py | --uninstall python
curl http://pre-commit.com/install-local.py | uninstall | python..and还有另外几种可能更无稽之谈的变体。所有这些都导致:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Unknown option: -n
usage: /usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
100 2590 100 2590 0 0 14175 0 --:--:-- --:--:-- --:--:-- 14230
(23) Failed writing body发布于 2017-06-02 17:57:01
这个怎么样:
curl http://pre-commit.com/install-local.py | python - uninstall发布于 2022-05-04 19:29:18
有非常细粒度的选项-> pre-commit uninstall -h
除去每一个钩子:
pre-commit uninstall -t pre-commit -t pre-merge-commit -t pre-push -t prepare-commit-msg -t commit-msg -t post-commit -t post-checkout -t post-merge -t post-rewrite
防白痴卸载:
pip install pre-commit \
&& pre-commit uninstall -t pre-commit -t pre-merge-commit -t pre-push -t prepare-commit-msg -t commit-msg -t post-commit -t post-checkout -t post-merge -t post-rewrite \
&& pip uninstall pre-commit -yhttps://stackoverflow.com/questions/44334746
复制相似问题