installation steps:
1. Create a .bin folder in the root directory
mkdir ~/.bin
2. Configure as a temporary environment variable (can also be configured as permanent)
PATH=~/.bin:$PATH
3. Download the repo (I am downloading the internal repo of the company)
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
or you can use Tsinghua source to download
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
4. Copy the repo file in git-repo to the .bin directory created by 1.
cd git-repo
cp repo ~/.bin/
5. Modify permissions
chmod a+x ~/.bin/repo
6. Create a working directory for synchronized source code
mkdir android_source
7. Create a .repo directory in the working directory
cd android_source
mkdir .repo
8. Copy the downloaded git-repo to .repo and rename it to repo
9, can be re-initialized
repo init -u xxxxxxxxx -b xxxx
10. Start synchronization
repo sync
————————————————
Copyright statement: This article is the original article of the CSDN blogger "win9zz". It follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and This statement.
Original link: https://blog.csdn.net/qq_33160790/article/details/78193314