Suppose we already merged from remote masterbranch.
Select the remote master node, and right click.
Then Click Reset xxxx(your branch name) to this commit.
Choose Soft – keep all local changes, and Click OK button
Now you will find all your changes are uncommitted
Type your commit message and click Commit button.
Click push button and check Force push option
You need to check Allow force push option in Sourcetree Preferencesif you cannot find it.
Thanks forFanglin’s help.