User Tools

Site Tools



How to contribute to Kubernetes via GitHub.

The workflow

First, create a GitHub fork of

Create the appropriate Go working directory:

$ mkdir -p ~/go/src/
$ cd ~/go/src/

Make a local clone of your GitHub fork:

$ git clone

Move into the cloned directory, and verify the single remote defined thus far:

$ cd kubernetes
$ git remote -v
origin (fetch)
origin (push)

Define the remote upstream for the official Kubernetes repo, and make sure you can't push to it:

$ git remote add upstream
$ git remote set-url --push upstream no_push
$ git remote -v
origin (fetch)
origin (push)
upstream (fetch)
upstream	no_push (push)

Finally, regularly pull new content and merge it into the master branch:

$ git checkout master
$ git fetch upstream
$ git merge upstream/master
kubernetes_github_workflow.txt · Last modified: 2018/04/08 14:21 by rpjday