1. git fetch 获取远程的所有分支
2. 在执行 git checkout -b local-branch-name origin/remote-branch 就可以将远程分支remote-branch上的代码映射到本地命名为local-branchname 的分支上。
1. git fetch 获取远程的所有分支
2. 在执行 git checkout -b local-branch-name origin/remote-branch 就可以将远程分支remote-branch上的代码映射到本地命名为local-branchname 的分支上。
转载于:https://www.cnblogs.com/yyh1/p/6523995.html