使用repo来管理git仓库~~
google的地址总是不好访问。
请参考http://source.android.com/source/downloading.html这个地址里面的内容
首先安装好了git和curl。curl类似与wget用来直接从网址下载用的。
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Version Control.
To install, initialize, and configure Repo, follow these steps:
-
Make sure you have a bin/ directory in your home directory, and that it is included in your path:
$ mkdir ~/bin $ PATH=~/bin:$PATH
-
Download the Repo script and ensure it is executable:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo
The SHA-1 checksum for repo is 29ba4221d4fccdfa8d87931cd73466fdc24040b5
网上好多curl的地址都不好用,还不如直接从这里找。