转自:http://www.cnblogs.com/dinphy/p/5669384.html
同步cm12.1初始化出现的问题:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
解决方法:
1、
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
2、将git-repo里面的repo文件复制到/bin目录
3、在同步源码的工作目录新建.repo文件夹
4、把git-repo重命名为repo复制到.repo目录下
5、重新初始化:
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
6、同步开始
repo sync -c -j8