首页 > 其他 > 详细

Sync a fork of a repository to keep it up-to-date

时间:2018-08-02 10:55:38      阅读:206      评论:0      收藏:0      [点我收藏+]

https://help.github.com/articles/syncing-a-fork/
https://help.github.com/articles/configuring-a-remote-for-a-fork/

git clone https://github.com/WisWang/website.git

git remote -v

git remote add upstream https://github.com/kubernetes/website.git

git fetch upstream

git merge upstream/master

解决冲突

vim content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md
git add content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md

git add *
git commit -m "keep repo update with offcial master"
git push

Sync a fork of a repository to keep it up-to-date

原文:https://www.cnblogs.com/WisWang/p/9405577.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!