前言
好久没发文章了
来记录一下一些简单的步骤
2021年2月 (¦3[▓▓]
Git fork之后如何同步更新原仓库
仓库:
origin github:
https://github.com/MyEMS/myems.git
my github:
https://github.com/hyh123a/myems.git
# 1.clone自己的仓库到本地
git clone https://github.com/hyh123a/myems.git
# 2.添加原作者地址
cd myems
git remote add origin_myems https://github.com/MyEMS/myems.git
# 3.抓取原作者仓库最新代码到本地
git fetch origin_myems
# 4.合并原作者仓库到本地代码仓库
# master 分支
git checkout master
git pull
git merge origin_myems/master
git push
# 同步develop 分支
git checkout -b develop origin/develop
git pull
git merge origin_myems/develop
git push