我目前正在使用Windows Github GUI,它看起来很酷很容易,所以我经常尝试使用它.我遇到的一个问题是当我分叉一个项目时,我不知道如何使用git更新该fork
Gus*_*ius 30
仅供参考,我在此处复制http://processwire.com/talk/topic/1565-github-for-windows/上的详细说明:
open a shell here"# 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中源和上游之间的区别 ".
| 归档时间: |
|
| 查看次数: |
5802 次 |
| 最近记录: |