如何完全删除 Mac 版 Github 及其 Git 安装等?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25907252/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I completely remove Github for Mac along with its Git installation and all?
提问by sr3
I'm new to OSX, so I don't want to just go around deleting things without really knowing what's up. What's the best way to go about obliterating Github and its Git from my machine?
我是 OSX 的新手,所以我不想在不知道发生了什么的情况下四处删除东西。从我的机器上清除 Github 及其 Git 的最佳方法是什么?
Thanks!
谢谢!
采纳答案by sr3
回答by Thomas Ayoub
To delete git, just drag and drop the folder from the /Application/Git.app to the trash bin. Then open a Terminal (/Application/Utilities/Terminal) and copy paste this lines (one by one) :
要删除 git,只需将文件夹从 /Application/Git.app 拖放到垃圾箱即可。然后打开一个终端(/Application/Utilities/Terminal)并复制粘贴这一行(一一):
rm -rf /usr/local/git
rm /etc/paths.d/git
rm /etc/manpaths.d/git
Then restart your computer and voilà
然后重启你的电脑,瞧