You can find answers on how to return your branch (or master) back to the state before it was merged (hard revert). If everything is in order to return everything back to this state, everything is in order. But usually I have to return a merge of a function branch, while preserving the commits made after this merge.
Just do:
git revert -m 1 [copy-paste-the-id-of-the-merge-commit-here]
if necessary, edit conflicts and commit.
edit: and yes, SourceTree should pass the -m 1 arguments if you undo the merge commit.
source share