Darko Darac
Darko Darac

Reputation: 9

Delete commit and unmerge

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.

Commit and merge

Upvotes: 0

Views: 41

Answers (1)

Vamsidhar Reddy Gaddam
Vamsidhar Reddy Gaddam

Reputation: 351

Assuming you have push rights:

git reset --hard HEAD~
git push -f origin master

Upvotes: 1

Related Questions