git使用--拉分支

默认提交是提交到master的
 
查看当前项目有哪些分支:git branch -r
 
git bash运行命令:git status 

创建并切换到新的分支:

git checkout -b XXX

切换到新的分支:

git checkout  XXX
 提交后,在这查看
 
 
拉某个分支代码 :git clone -b <branch> <remote_repo>
 
 
 
 
 
 
原文地址:https://www.cnblogs.com/wangxuehao/p/7449802.html