Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete multiple heads?

Tags:

mercurial

I have pushed some files by mistake and it shows different heads in main repository. How can I delete that head?

like image 410
Madura Harshana Avatar asked Dec 07 '22 09:12

Madura Harshana


1 Answers

You can enable the "mq" extension by editing your .hgrc file. Make sure the following lines are present:

[extensions]
mq =

Afterwards you can "strip" a specific revision which deletes it so that you have only one head:

hg strip ...
like image 106
Robert Avatar answered Feb 26 '23 16:02

Robert