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
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join