git 获取远程分支

另外一哥们将分支push到库中,我怎么获取到他的分支信息呢?git

若是安装了git客户端,直接选择fetch一下,就能够获取到了。post

若是用命令行,运行 git fetch,能够将远程分支信息获取到本地,再运行 git checkout -b local-branchname origin/remote_branchname  就能够将远程分支映射到本地命名为local-branchname  的一分支。 fetch

 
容许转载,麻烦注明出处: http://www.cnblogs.com/hanxianlong
相关文章
相关标签/搜索