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