附加项 git 同步你fork的代码

1. fork远程仓库

2.  同步你fork的仓库

 git remote add upstream https://github.com/magicworldos/PA-FlightControl-ExtCtl.git
 git remote -v
 git fetch upstream
 git checkout develop
 git merge upstream/develop
 git push origin develop

总结: git fork同步的原理,就是,你把原仓库的代码也下载下来,然后和本地分支合并,同步到你账号的远程仓库

猜你喜欢

转载自blog.csdn.net/yangang185/article/details/81626605
今日推荐