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

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

问题描述

我前段时间在 github 上 fork 了一个仓库,做了一个小改动并将改动推送回了我的 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 的新手,我需要具体的命令来操作.

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

示例:

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

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

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