S
S
Sergey Popov2019-03-22 11:25:26
git
Sergey Popov, 2019-03-22 11:25:26

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

1 answer(s)
D
Dmitry Shitskov, 2019-03-22
@be_a_dancer

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 question

Ask a Question

731 491 924 answers to any question