Answer the question
In order to leave comments, you need to log in
How to rollback a commit while saving a few after it?
It is necessary to roll back one of the wrong merges to the master, which happened some time ago, after which about 20 other commits have already been made. It is necessary to knock out only one incorrect one (it is large) from the master, keeping everything else.
Is it real?
Answer the question
In order to leave comments, you need to log in
A more correct approach
A new commit will be created, undoing the actions of the "bad"
Alternative, but requiring a force push as a result. Forcing into master is a sin!
Find the "bad" commit and write opposite it instead of peek
-drop
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question