如何在github上更新fork
我找到了一个好的项目(样板),我将把它作为我项目的起点。 我用叉子叉了它如何在github上更新fork,github,git-fork,Github,Git Fork,我找到了一个好的项目(样板),我将把它作为我项目的起点。 我用叉子叉了它 git clone https://github.com/fork.git forkdirectory # clone my fork to my local PC git branch mybranch # create new branch for my specialities, which will be different from boilerplate git checkout steklo # cha
git clone https://github.com/fork.git forkdirectory # clone my fork to my local PC
git branch mybranch # create new branch for my specialities, which will be different from boilerplate
git checkout steklo # change the branch, which I will work on by default
然后我做一些更改,并检查它们是否出现在我的fork中
git add . # add all changes for commit
git commit -m"commit comments" # make commit
git push -u origin mybranch # push changes to mybranch
我测试了下一个变化,我可以做得更短
git push
但是当我看到最初的样板文件更新时,我应该怎么做呢
1) 如何将所有更新应用到我的fork
2) 然后如何将我的fork中的所有更新应用到我的本地克隆?我想我理解你对它的困惑 此过程包括以下步骤:
干杯:)可能是“否”的重复项。您可以在相反的位置看到它。我不打算做拉请求。我计划开发自己的分支,但这个分支必须有可能从主样板的主分支获得更新。因为他们可能会修复一些bug或者添加一些新功能。当然,我希望能够在我的分支机构中快速获得它。