按照Pre-Commit的website上的“非管理安装”说明,我运行了以下命令:

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

..以及其他一些可能更多的废话变体。所有这些导致:
  % 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

最佳答案

这个怎么样:

curl http://pre-commit.com/install-local.py | python - uninstall

关于python - 如何卸载预提交,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44334746/

10-15 23:32