Q
Q
QQ2017-04-07 01:57:58
git
QQ, 2017-04-07 01:57:58

How to revert a commit that was reverted?

Hello.
I made a commit, I wanted to cancel the very fact of the commit, I did it
git revert HEAD --no-edit
AND all the changes of this commit were canceled.
How to return all these changes back, i.e. revert the commit you rolled back from?
Is it possible to undo the fact of a commit at all without touching the changes that were included in it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Feninets, 2017-04-07
@botaniQQQ

do it again

M
mvsavkin, 2017-04-07
@mvsavkin

or reset hard to the commit you want to go back to, but this is not very good, you have to rewrite the history i.e. push with -f flag, revert is better

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question