Recently, have met the code in error after submission, it is necessary to roll back to the previous version. Because it is not common, so every time is not very skilled, record this for future reference.
First, [the master reset to this submission]
Under sourceTree selected in error filed a submission, perform a right [to reset the master to this submission], select [forcibly merge - discard all changes to the working copy] OK.
Two, git strong push
After execution, then will be prompted for new updates need to pull, do not pull, pull pull to local before then will, should perform commit, but no longer souceTree execution, this time by means of the terminal.
Open a terminal, cd to the project directory, execute git push -u origin master -f
, you can.