If you posted material in your master branch, which is not in upstream/master ( upstream , which is the remote descriptor of the official repo), I recommend pushing back a couple of commits and then merging upstream/master back:
>> git checkout master
In the end, you have to put your messy branch in oldmaster and official in master .
source share