2017-06-02 43 views
1

继“非管理员安装”的指令预提交的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 

回答

1

如何:

curl http://pre-commit.com/install-local.py | python /dev/stdin uninstall 
+0

所以这导致了以下注释:'〜清理/ .PRE提交 - VENV〜/斌/预commit'。 但预安装似乎仍然安装。任何你能想到的理由都不能使用上面的命令完全卸载吗? – kuanb

+1

不知道,我试过在我的机器上,它似乎删除它? https://gist.github.com/madebydavid/1e225ef912984044e02996993b5f269e – madebydavid