我正在尝试下载此处描述的 Android 源代码:http: //source.android.com/source/downloading.html#getting-the-files
wutze@wutze-pc ~
$ cd bin
wutze@wutze-pc ~/bin
$ ls
wutze@wutze-pc ~/bin
$ cd ..
wutze@wutze-pc ~
$ PATH=~/bin:$PATH
wutze@wutze-pc ~
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26223 100 26223 0 0 107k 0 --:--:-- --:--:-- --:--:-- 110k
wutze@wutze-pc ~
$ chmod a+x ~/bin/repo
wutze@wutze-pc ~
$ mkdir WORKING_DIRECTORY
wutze@wutze-pc ~
$ cd WORKING_DIRECTORY
wutze@wutze-pc ~/WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
Get https://gerrit.googlesource.com/git-repo/clone.bundle
wutze@wutze-pc ~/WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
wutze@wutze-pc ~/WORKING_DIRECTORY
$
但我没有被要求提供凭据,并且 repo sync 也不起作用:
wutze@wutze-pc ~/WORKING_DIRECTORY
$ repo sync
error: command 'sync' requires repo to be installed first.
Use "repo init" to install it here.
wutze@wutze-pc ~/WORKING_DIRECTORY
而且我没有收到任何错误消息