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

Posted wiswang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Sync a fork of a repository to keep it up-to-date相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

git clone和fork的区别

failed to sync branch You might need to open a shell and debug the state of this repo.

Teaching Your Computer To Play Super Mario Bros. – A Fork of the Google DeepMind Atari Machine Learn

Redis笔记---主从复制

17. Letter Combinations of a Phone Number

B. Equations of Mathematical Magic