Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| kubernetes_github_workflow [2018/04/08 14:09] – rpjday | kubernetes_github_workflow [2018/04/08 14:21] (current) – [The workflow] rpjday | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| $ mkdir -p ~/ | $ mkdir -p ~/ | ||
| $ cd ~/ | $ cd ~/ | ||
| + | </ | ||
| + | |||
| + | Make a local clone of your GitHub fork: | ||
| + | |||
| + | < | ||
| + | $ git clone https:// | ||
| + | </ | ||
| + | |||
| + | Move into the cloned directory, and verify the single remote defined thus far: | ||
| + | |||
| + | < | ||
| + | $ cd kubernetes | ||
| + | $ git remote -v | ||
| + | origin https:// | ||
| + | origin https:// | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Define the remote '' | ||
| + | |||
| + | < | ||
| + | $ git remote add upstream https:// | ||
| + | $ git remote set-url --push upstream no_push | ||
| + | $ git remote -v | ||
| + | origin https:// | ||
| + | origin https:// | ||
| + | upstream https:// | ||
| + | upstream no_push (push) | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Finally, regularly pull new content and merge it into the '' | ||
| + | |||
| + | < | ||
| + | $ git checkout master | ||
| + | $ git fetch upstream | ||
| + | $ git merge upstream/ | ||
| </ | </ | ||