git切换分支
首先通过
$ git branch -a
来查看所在目录的分支
$ git branch -a
master
* trunk
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/zhanghanlun
然后输入命令切换分支
$ git checkout -b zhanghanlun origin/zhanghanlun
1
切换到origin/zhanghanlun分支命令本地分支为”zhanghanlun”