如何通过本地命令行同步更新?
- 验证远程分支可以 fetch 或 push
git remote -v
2. 指明我们需要同步的仓库
git remote add upstream https://github.com/OriginalRepo/OriginalProject.git
3. 验证
git remote -v
4. 拉取更新的 branches 和 commits
git fetch upstream
5. Checkout 本地分支
git checkout master
6. 合并
git merge upstream/master
7. 提交
git push origin master