- Net -> curl
- Devel -> git* (git, git-completion, git-gui, gitk)
- Libs -> libreadline6, libiconv2
- Editors -> vim
- Python -> python
- openssh
- bzip2
- 先在使用者的家目錄新增bin目錄
$ cd ~
$ mkdir bin
- 下載Repo到bin目錄裡
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
- 下载http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html
- 可以直接下载connect.exe, 也可以自己build,只是需要在cygwin安装GCC
- 在~/bin下创建文件http-proxy-gw
# Filename: ~/bin/http-proxy-gw
# This script connects to an HTTP proxy using connect.c
connect -H mygate.at.com:1080 $@
- ~/.gitconfig配置,也可以用命令行设置
gitproxy = /home/vettey/bin/http-proxy-gw for kernel.org
gitproxy = /home/vettey/bin/http-proxy-gw for omapzoom.org
gitproxy = /home/vettey/bin/http-proxy-gw for codeaurora.org
[color]
ui = auto
[user]
name = vettey
email = vettey.gxy@gmail.com
3. 同步
- $ cd ~
$ mkdir mydroid
$ cd mydroid
$ ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git
- $ repo sync
以上创建的文件必须是unix格式,否则会出错
.gitconfig and http-proxy-gw should be in unix format, otherwise it will cause error.
Reference:
1. http://ranger1976.blogspot.com/2009/07/windowsandroid.html
没有评论:
发表评论