赞
踩
不吹牛的说,这篇文章绝对是目前网上最简单的 Git
升级教程了
Homebrew
Homebrew 是一个软件包管理器。它的作用就是将软件包安装到自己的目录中,然后将其文件符号链接到 /usr/local
。更多信息,请自行进入官网查看。
在将下面代码复制进终端,点击回车,然后打开零食,边吃边等就好。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
git
安装最新版的 git
brew install git
当看到下面输出时,说明 git
已经安装完成:
- Already downloaded: /Users/zhangpeng/Library/Caches/Homebrew/downloads/c5f94c257b885992f680bbe3c2b8ec009e8856aefebac2cc1fb6608d7f006152--git-2.20.1.mojave.bottle.2.tar.gz
- ==> Pouring git-2.20.1.mojave.bottle.2.tar.gz
- ==> Caveats
- Bash completion has been installed to:
- /usr/local/etc/bash_comp
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。