下载Android源码问题:
1.下载repo
问题:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
使用命令行下载repo时一直无法连接,直接从网页输入地址进行下载,下载完成后放在~/bin/repo目录
2.repo初始化:
repo init -u https://android.googlesource.com/platform/manifest出现问题:
fatal: Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error unknown url type: https
如果不是网络问题,就多尝试几次初始化命令;如果是设置代理导致的问题,需要设置http/https代理
export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
export HTTP_PROXY=http://127.0.0.1:8087
export HTTPS_PROXY=http://127.0.0.1:8087
3.git 身份认证
mv ~/gitconfig ~/.gitconfig
vim ~/.gitconfig
添加用户名邮箱