$ 0 0 git reset --hard origin/{branchName} is the correct solution to reset all your local changes done by rebase.