Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9185859
  • 博文数量: 1728
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19870
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1728)

文章存档

2024年(4)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: Android平台

2013-11-24 11:25:39

1. 浏览器登录,并用gmail帐号登录;
2. 点击网页上的“允许访问”,得到类似:

Login for Git:

Username: git-gaojs.hz.cn
Password: 1/5_cUC7YGeYNn71De8of2_1m1mqzpQs6xogGZfGRoj5o

Staying Authenticated - Linux and Mac OS X:

To stay authenticated by saving the password, append the following line to the ~/.netrc configuration file:
machine android.googlesource.com login git-gaojs.hz.cn password 1/5_cUC7YGeYNn71De8of2_1m1mqzpQs6xogGZfGRoj5o machine android-review.googlesource.com login git-gaojs.hz.cn password 1/5_cUC7YGeYNn71De8of2_1m1mqzpQs6xogGZfGRoj5o
Make sure you have set the permissions on ~/.netrc so that only your user account can read the file. If your home directory is on a network filesystem, consider moving it to a local disk and making ~/.netrc a symbolic link to the local version.

Staying Authenticated - Windows:

To stay authenticated by saving the password, append the following line to the %HOME%\_netrc configuration file:
machine android.googlesource.com login git-gaojs.hz.cn password 1/5_cUC7YGeYNn71De8of2_1m1mqzpQs6xogGZfGRoj5o machine android-review.googlesource.com login git-gaojs.hz.cn password 1/5_cUC7YGeYNn71De8of2_1m1mqzpQs6xogGZfGRoj5o
Ensure %HOME% is configured in the environment to be the same location as %USERPROFILE%. Note that by default, Windows systems willnot define the environment variable %HOME%; you must explicitly add it:
Start menu -> Computer -> (right click) -> Properties -> Advanced System Settings -> Environment Variables
Make sure you have set the permissions on %HOME%\_netrc so that only your user account can read the file.
3. 把上面那段信息追加到~/.netrc文件结尾(请检查当前用户的权限, 如果不存在此文件则自己新建一个);
4. 下载地址的URI更改为(中间加上了“/a”)。
5. repo init -u
6. repo sync

阅读(3368) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~