eEricZeng / gitalk

gitalk plugin repo
https://eericzeng.github.io
Apache License 2.0
0 stars 0 forks source link

Github上fork项目更新 | EricZeng #9

Open eEricZeng opened 5 years ago

eEricZeng commented 5 years ago

https://eericzeng.github.io/2019/07/22/Github%E4%B8%8Afork%E9%A1%B9%E7%9B%AE%E6%9B%B4%E6%96%B0/

场景:很早之前fork了github/gitee/gitlab等等的项目,但是项目经过多次迭代提交了更多更新,而自己账号下面被fork过来的项目并没有及时更新。此时,需要把提交过的内容更新到自己账号下的远程分支上。以我自己fork过的一个项目为例,主要分添加上游仓库和同步两个步骤。 添加上游仓库查看远程分支状态: 1git remove -v 添加需要同步的上游仓库: 1git remote a