Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从原始repo更新github fork?_Git_Github_Git Merge_Git Pull - Fatal编程技术网

如何从原始repo更新github fork?

如何从原始repo更新github fork?,git,github,git-merge,git-pull,Git,Github,Git Merge,Git Pull,我搞了一个github回购。 现在我想将我的fork更新为当前的repo版本。我怎么能做到这一点呢?我也有同样的疑问,并在报告中找到了答案 上游是我给原始存储库的名称 希望能有帮助 git remote add upstream git://url-to-original git fetch upstream git merge upstream/master git push

我搞了一个github回购。
现在我想将我的fork更新为当前的repo版本。我怎么能做到这一点呢?

我也有同样的疑问,并在报告中找到了答案

上游是我给原始存储库的名称

希望能有帮助

git remote add upstream git://url-to-original
git fetch upstream
git merge upstream/master
git push