fork auto update code example Example: update fork git fetch upstream git checkout master git merge upstream/master git push origin