H
H
habrdima2020-07-21 21:26:56
git
habrdima, 2020-07-21 21:26:56

Is it possible to undo many actions in Git at once?

Suppose I made a merge, then moved to another branch where I also made a merge, in general I made a lot of changes and realized that it was all wrong.
I want to go back to the moment when I started to make unnecessary changes, without climbing into every branch where I have to do a reset --hard
Is this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_, 2020-07-21
@mrxor

If you want all your branches to return to their pre-merge state, you will have to do a reset for everyone.
In general, use some kind of work flow with the git so that there is no such garbage. For example gitflow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question