版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hello_java_Android/article/details/81586683
create dir:
mkdir ~/bin
PATH=~/bin:$PATH
vim ~/bin/repo
cp content to repo file ,url is:
http://7xpgbx.dl1.z0.glb.clouddn.com/repo
或者 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
实在不行来这里复制内容直接粘贴:repo内容
then mkdir for android source:
mkdir ~/code/android_src/
then init repo:
cd ~/code/android_src/
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-5.1.1_r4
or:
repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-5.1.1_r4
then sync:
repo sync
【git使用】Failed to connect to 127.0.0.1 port 1080: Connection refused
查询是否使用代理:git config --global http.proxy
取消代理:git config --global --unset http.proxy