git remote -v
git remote add upstream aaa
git remote -v
git remote remove upstream
4.重新添加源代码库
git remote add upstream <fork link>
git remote -v
5.从源仓库更新同步代码
git fetch upstream
6.合并到本地代码库
git merge upstream/master
7.拉取远程代码库
git pull origin master
8.更新远程代码库
git push
github上fork了别人的项目后,再同步更新别人的提交
Author: tea9
Permalink: http://tea9.github.io/post/2129490429.html
License: Copyright (c) 2017-2025 CC-BY-NC-4.0 LICENSE
Slogan: Do you believe in DESTINY?