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

1. git fetch 获取远程的所有分支

2. 在执行 git checkout -b local-branch-name origin/remote-branch  就可以将远程分支remote-branch上的代码映射到本地命名为local-branchname  的分支上。

posted @ 2017-03-09 09:16  艾若菲  阅读(387)  评论(0编辑  收藏  举报