Git 获取远程分支

来源:互联网 发布:linux 时间戳 编辑:程序博客网 时间:2024/05/16 16:06

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

如果安装了git客户端,直接选择fetch一下,就可以获取到了。

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

允许转载,麻烦注明出处:http://www.cnblogs.com/hanxianlong
0 0
原创粉丝点击