I've made a few mistakes in updating my repository, starting with pushing a commit to the master instead of the feature branch. 
What I've done to try and fix this is created a new feature branch off the updated master, followed by a git revert on the master.
After committing and pushing the changes master is now ahead of the feature branch by 1 commit I'd like it to be the other way around.
Is it possible to make this change?
 
                        
Since you have already pushed the revert commit, you can simply revert-the-revert commit on your feature branch to get those changes back.
So, try this:
For cleaner history, if you haven't pushed the
featurebranch yet, try this which will avoid the extra merge commit:After performing either of those two command sequences your
featurebranch will now be ahead ofmaster.