Languages

How do I cancel git revert mode?

6 points
Asked by:
SirMo
1020

How do I cancel git revert mode?

I tried to revert some files, but made some mistakes during the way.
Now I am in git revert mode:

miq@DES /c/project/cmp (master|REVERTING)
$ 

How to quit the '|REVERTING' part and go back to the branch 'master' ?

1 answer
2 points
Answered by:
SirMo
1020

 Quickes solution, just execute:

$ git revert --abort

And you should see:

miq@DES /c/project/cmp (master)
$ 

 

0 comments Add comment
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join