github上非master分支的项目源码下载
2019-07-15 本文已影响0人
swallowsonny
1.下载项目源码
git clone https://github.com/***.git
2.查看当前分支(进入源码目录)
git branch
![](https://img.haomeiwen.com/i126698/e2877c1498c69453.png)
3.查看所有分支
git branch -a
![](https://img.haomeiwen.com/i126698/7044a0b440e1fd0f.png)
4.取远程分支并分化一个新分支 ,切换androidx分支
git checkout -b androidx remotes/origin/androidx
![](https://img.haomeiwen.com/i126698/e62a7f0dfa5cc340.png)
5.切换分支
git checkout master
git checkout androidx