How do I cancel git revert mode?

6 points
Asked by:

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 answers
2 points
Answered by:

 Quickes solution, just execute:

$ git revert --abort

And you should see:

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


0 comments Add comment
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.