码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-08-02 11:26:09      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:update   git push   https   pos   website   remote   keep   setup   解决   

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

标签:update   git push   https   pos   website   remote   keep   setup   解决   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!