git 克隆所有分支 并 切换远程分支
克隆所有远程分支
-
git clone http://github.xxx.com/project.git
-
cd project
-
git branch -a
* master remotes/origin/HEAD -> origin/master remotes/origin/dev remotes/origin/master
-
git checkout -b dev origin/dev ### 作用是checkout远程的dev分支,在本地起名为dev分支,并切换到本地的dev分支
-
git checkout dev // 切换回dev分支,开始开发
git 克隆单个远程分支
-
git clone -b masterName http://github.xxx.com/project.git
A little hug, little gift.
All of little something.
these are our meories.