# 添加主仓库到 remote,作为 fork 后仓库的上游仓库
git remote add upstream https://github.com/youzan/vant.git

# 拉取主仓库最新代码
git fetch upstream

# 切换至 dev 分支
git checkout dev

# 合并主仓库代码
git merge upstream/dev

  

参考

一、如何优雅地在github上贡献代码

https://segmentfault.com/a/1190000000736629

https://youzan.github.io/vant/#/zh-CN/contribution

# 添加主仓库到 remote,作为 fork 后仓库的上游仓库 git remote add upstream https://github.com/youzan/vant.git # 拉取主仓库最新代码 git fetch upstream # 切换至 dev 分支 git checkout dev # 合并主仓库代码 git merge upstream/dev

相关文章:

  • 2021-10-09
  • 2021-06-12
  • 2021-10-09
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2022-01-12
  • 2021-09-23
  • 2021-07-20
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案