git同步远端的分支

如果用命令行,运行 git fetch,可以将远程分支信息获取到本地,

再运行 git checkout -b local-branchname origin/remote_branchname  就可以将远程分支映射到本地命名为local-branchname  的一分支。 

原文地址:https://www.cnblogs.com/chucklu/p/4578576.html