如何在Github Desktop中将分叉的仓库与原始仓库同步 [英] How to sync your forked repo with original Repo in Github Desktop

查看:150
本文介绍了如何在Github Desktop中将分叉的仓库与原始仓库同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在标记为重复"之前,请先阅读此内容

我知道在 https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository ,但我要了GitHub台式机,如果您无法回答,请不要将其标记为重复"

I know there is a solution for CMD at https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository but i asked for GitHub Desktop, If you can't answer then dont mark as Duplicate

我是开发新手,听说Git和GitHub学习了非常基础的知识,然后下载了 GitHub Desktop 一段时间后,我发现了一个很棒的开源项目,我将其分叉并在Github Desktop中克隆了分叉的Repo.我改进了的某些功能,并将本地仓库与GitHub分支仓库进行了同步,此后,我做了 Pull Request .我的添加被接受并合并到原始存储库中. 我添加了许多新功能,并且所有合并请求都已合并.

I am new to development, I hear about Git and GitHub learn very basics then I downloaded GitHub Desktop After a while I found a great Open Source project I forked it and cloned the forked Repo in my Github Desktop. I improved some features in and and Synced my local Repo with my GitHub forked Repo, after that I did a Pull Request My addition was accepted and merged into original Repository. I added so many new features and all my Pull requests were Merged.

这是悲伤的故事开始的地方:( 十天后,当我在GitHub网站上打开我的Forked Repo时,这就是我看到的:

This is where the Sad Story Starts :( After ten days when I opened my Forked Repo on GitHub Website this is what I saw:

此后,我在网上搜索了许多小时,但找不到 GitHub Desktop 的解决方案,我知道有很多关于 CMD 的教程,但是我需要知道如何与GitHub桌面应用程序中的原始回购同步?

After this I searched web for many hours but can't find solution for GitHub Desktop I know there are tons of tutorial for CMD but I need to know how to sync with original Repo from Desktop Application of GitHub ?

我是新来的,所以抱歉如果我问一些愚蠢的问题:) 谢谢

I am new so SORRY if i asked something stupidish :) Thanks

推荐答案

使用GitHub Desktop将分叉的主服务器与原始存储库的主服务器同步:

To sync the master of your fork to the master of the original repository using GitHub Desktop:

单击当前分支"选项卡,然后首先选择主"作为当前分支(如果尚未选择).

Click on the 'current branch' tab and first select 'master' as the current branch (if it's not already selected).

点击"获取原点"按钮.

再次单击当前分支"选项卡,然后单击"选择一个分支合并为主分支"按钮.

Click on the 'current branch' tab again and click the 'choose a branch to merge into master' button at the bottom.

*注意::在此列表中查找,您会发现 2个条目 .带有 origin/前缀的分支是 fork 中的分支,带有 upstream/ 前缀的分支是那些在GitHub上的 原始存储库 中.

*NOTE: Looking down this list, you will find 2 entries for every branch. Those that are prefixed with origin/ are the branches in your fork, and those prefixed with upstream/ are those in the original repository on GitHub.

从该列表中选择 上游/master ,然后这样可以从主存储库中提取更改,以使您的本地克隆为最新.

Select upstream/master from this list, and this pull the changes down from the master repository to bring your local clone up to date.

本地克隆完成从主存储库中提取更新后,使用

Once you local clone has finished pulling the updates from the master repo, push these new changes to your fork, stored on GitHub, using the push origin button on GitHub desktop.

这篇关于如何在Github Desktop中将分叉的仓库与原始仓库同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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