1 下载github 上,主分支以外的其他分支
"checkout" the remote branch as a new local branch, and specify a new local branch name. git checkout -b newlocalbranchname origin/branch-name Or you can do:
git checkout -t origin/branch-name The latter will create a branch that is also set to track the remote branch.
2 ubuntu下载android 源码时,出现错误:Received HTTP code 503 from proxy after CONNECT
解决方案:
unset HTTP_PROXY
unset HTTPS_PROXY
Below iface eth0 inet static add the following line:
dns-nameservers 8.8.8.8 8.8.4.4 This will use Google's DNS servers.
Restart your network:
sudo /etc/init.d/networking restart
6 repo sync 下错分支怎么办:
If you run repo init a second time with a different branch, you can simply repo sync and it will not download the entire source code again.
7 add git log to files: 保存git 提交log到文件中
git log --after="2017-6-30" > log_630.txt
參考:https://www.atlassian.com/git/tutorials/git-log
8