2017-06-02 80 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