1. 程式人生 > >Sync a fork of a repository to keep it up-to-date

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

push repo for 解決 conf date wiki hub comm

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