在GitHub for Windows上更新fork?

Tak*_*oto 20 github

我目前正在使用Windows Github GUI,它看起来很酷很容易,所以我经常尝试使用它.我遇到的一个问题是当我分叉一个项目时,我不知道如何使用git更新该fork

Gus*_*ius 30

仅供参考,我在此处复制http://processwire.com/talk/topic/1565-github-for-windows/上的详细说明:

  • 在"GitHub for Windows"本地存储库视图中,右键单击并选择" open a shell here"
  • 这将在正确的目录中打开一个shell.输入以下命令:
# Assigns the original repo to a remote called "upstream"
git remote add upstream https://github.com/path_to_your_repository.git 

# Pulls in changes from the original repo not present in your local repository, 
# without modifying your files. 
# Allows you to review first.
git fetch upstream 

# merge fetched changes into your working files.
git merge upstream/master 


Von*_*onC 17

GitHub for Windows现在只支持一个遥控器(origin引用你的前叉).

因此,您需要手动添加upstream引用原始仓库的远程(称为' '),以便您能够(从CLI)提取upstream,更新本地仓库并允许您推送(这次使用GUI)新的提交到你的分叉.

有关更多信息,请参阅" github中源和上游之间的区别 ".