1. 设置源仓库的远程地址
>> git remote add [新地址名称] [源仓库远程地址]
>> git remote add upstream https://github.com/leisurelicht/wtfpython-cn

2. 同步fork
>> git fetch [新地址名称]
>> git fetch upstream

3. 本地切换到想要更新的分支上
>> git checkout [branch]
>> git checkout master

4. 把源仓库的远程分支合并到本地
>> git merge [新地址名称/分支]
>> git merge upstream/master

5. 更新到自己的远程库上
>> git push origin master

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2021-10-20
  • 2022-03-01
  • 2021-11-07
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-08-22
  • 2021-12-27
相关资源
相似解决方案