Potney Switters
Potney Switters

Reputation: 3062

Git remove remote merge and branch

I have been working on my develop branch. I checked out branch 'branch-xxx', commit my changes and then merged the branch on develop, only to find out that this piece of code is buggy!

How can I undo the merge and remove the branch?

I checked out Undo a Git merge that hasn't been pushed yet But even though it seems I am indeed moving to the previous commit, I can't figure out how to push this to the remote.

Upvotes: 0

Views: 296

Answers (1)

aragaer
aragaer

Reputation: 17848

You simply reset your develop branch to state before merge. Then delete your 'branch-xxx'.

Upvotes: 1

Related Questions