Mac Git安装、卸载
    		       		warning:
    		            这篇文章距离上次修改已过995天,其中的内容可能已经有所变动。
    		        
        		                
                通过Homebrew安装
安装完 homebrew 后(可以在本站搜索),使用命令安装Git
brew install git
初始化Git设置
设置username和email
git config --global user.name "username"
git config --global user.email "email"
通过终端命令创建ssh key
ssh-keygen -t rsa -C "eamil"
查看.ssh/id_rsa.pub文件
cat .ssh/id_rsa.pub
卸载Git 
查看Git安装位置,使用命令 which -a git
终端运行 sh /usr/local/git/uninstall.sh 卸载
which -a git
 
cd /usr/local
 
cd git
 
sh uninstall.sh