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

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

文章分类

全部博文(1086)

文章存档

2019年(60)

2018年(81)

2017年(80)

2016年(70)

2015年(52)

2014年(41)

2013年(51)

2012年(85)

2011年(46)

2010年(232)

2009年(288)

分类: Android平台

2013-11-24 11:25:39

1. 浏览器登录https://android.googlesource.com/new-password,并用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更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
5. repo init -u https://android.googlesource.com/a/platform/manifest
6. repo sync

阅读(1158) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册