Reputation: 9
I made a commit and push that includes a merge. It results in many errors so I want to roll back all the changes. I want to delete last pushed commit and return the origin to the highlighted commit. Here is the image that describes the problem.
Upvotes: 0
Views: 41
Reputation: 351
Assuming you have push rights:
git reset --hard HEAD~
git push -f origin master
Upvotes: 1