fetch branch head code example Example: * branch master -> FETCH_HEAD git checkout master git reset --hard upstream/master git push --force