将远程github存储库中的更改合并到本地存储库 [英] Merge changes from remote github repository to your local repository

查看:111
本文介绍了将远程github存储库中的更改合并到本地存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我前段时间在github上创建了一个仓库,做了一个小改动,并将这个改变推回到我的github fork中。原来的存储库已经改变。我希望将原始存储库中的更改合并到我的分支中。

I have forked a repository on github some time ago, made a small change and pushed the change back to my github fork. The original repository has changed since. I would like to merge the changes from the original repository to my fork.

我对git和github都是新手,我需要具体的命令如何执行。 / p>

I am new to both git and github, and I need specific commands how to do it.

推荐答案

git remote add {name} {Public Clone URL}
git pull {name} master
git push

示例:

Example:

git remote add bret git://github.com/bret/watir.git
git pull bret master
git push

这篇关于将远程github存储库中的更改合并到本地存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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