$ git checkout master
$ git pull
$ git checkout my-nifty-feature
$ git merge --no-ff --no-commit master
$ git diff --staged
$ git commit -m "merge from master"
$ git push
taken from a combination of this, and this