L
L
LeoDzhi2020-12-19 10:49:15
git
LeoDzhi, 2020-12-19 10:49:15

How to cancel merge in phpstorm?

I accidentally made a merge where it is not needed at all and pushed it to github, I want to roll back this merge. Tell me if this is possible, I tried to find it on the Internet, nothing sensible, or just looked badly. Can you tell me how to do this step by step in phpstorm? Thank you very much help)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-12-27
@LeoDzhi

1. Open the git panel.
2. Right click on the target commit.
3. Reset Current Branch to Here...
Select the type of reset in the dialog. You probably need hard.
You will need to push to github with the -f flag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question