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 13:49] – rpjday | kubernetes_github_workflow [2018/04/08 14:21] (current) – [The workflow] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | How to contribute to [[https://kubernetes.io/docs/ | + | How to contribute to [[https://github.com/kubernetes/community/ |
| + | |||
| + | ===== The workflow ===== | ||
| + | |||
| + | First, create a GitHub fork of '' | ||
| + | |||
| + | Create the appropriate Go working directory: | ||
| + | |||
| + | < | ||
| + | $ mkdir -p ~/ | ||
| + | $ 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/ | ||
| + | </ | ||