Git:从其他分支拉 [英] Git: Pull from other branch

查看:200
本文介绍了Git:从其他分支拉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从GitHub上的一个项目创建了一个fork。
我如何从我分配的项目中提取变更?

I have created a fork from a project on GitHub. How can I now pull changes from the project that I forked from?

推荐答案

git拉实际上只是 git pull< remote>的简写。 < branchname> ,在大多数情况下,它相当于 git pull origin master 。您将需要添加另一个远程并从它明确拉。本页详细描述:

git pull is really just a shorthand for git pull <remote> <branchname>, in most cases it's equivalent to git pull origin master. You will need to add another remote and pull explicitly from it. This page describes it in detail:

http:// help.github.com/forking/

这篇关于Git:从其他分支拉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆