$ git checkout master $ git pull $ git checkout branch-name $ git rebase master
$ git add filename.ext $ git rebase --continue
$ git push origin branch-name
$ git checkout master $ git fetch upstream # https://help.github.com/articles/syncing-a-fork/ $ # git merge upstream/master # <- leaves merge commits in your fork $ git checkout branch-name $ git rebase upstream/master # Use rebase instead of merge? $ git push -f origin branch-name