git 在本地拉取远程分支的代码(并不做提交操作)

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