ubuntu install git curl python
-
A bin / directory ensure that the main directory, and the directory included in the path:
mkdir ~/bin
PATH=~/bin:$PATH
-
Download Repo tool, and make sure it executable:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
-
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
-
Git the init -u the repo: //mirrors.ustc.edu.cn/aosp/platform/manifest
## if the tips do not connect to gerrit.googlesource.com, you can edit ~ / bin / repo, REPO_URL line to replace the following:
REPO_URL = ## 'https://gerrit-googlesource.lug.ustc.edu.cn/git-repo'
--------------------- -
repo sync