I think that after doing 4 you will not merge but rebase the feature branch on top of your master... so rebasing your feature branch to updated master and then rebase your changes from the branch on top of your master branch, then push.
In commands this will be like this:
- git pull (on branch master)
- git checkout -b feature_branch (code along here)
- git checkout master && git pull
- git checkout feature_branch && rebase master
- git checkout master && rebase feature_branch
- git push
At work I mostly encourage my coworkersto read this article on rebasing and the follow ups on the topic