1、根目录下创建.bin文件夹
mkdir ~/bin
2、配置为临时环境变量(也可配置为永久的)
PATH=~/bin:$PATH
3.下载repo
git clone git://codeaurora.org/tools/repo.git ./git-repo
git clone https://storage.googleapis.com/git-repo-downloads/repo ./git-repo
git clone https://dl-ssl.google.com/dl/googlesource/git-repo/repo ./git-repo
git clone http://gerrit.googlesource.com/git-repo/repo ./git-repo
4、将git-repo中的repo文件复制到 1 创建的.bin目录中
cd git-repo
cp repo ~/bin/
5、修改权限
chmod a+x ~/bin/repo
6.如果出现问题,很多是因为Mac的软件默认版本比较低,
备注:
MAC里的Git版本比较旧,需要更新到新版本
brew install git
//注意brew的安装目录
cd /usr/local/Cellar/git/2.24.1
//设置环境变量
open .bash_profile
export GIT=/usr/local/git export PATH=$GIT/bin:$PATH
更新Python版本,
$brew upgrade python@2
7.repo
repo init -u http://192.168.1.218:8080/QCOM8.1/UNER/.repo/manifests -b QCOM8.1_UNER_Repo_Manifests_Int -m SQ45S_Int.xml --no-repo-verify