Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SourceTree Windows Mercurial - reopen closed branch

When I try to reopen a closed branch I get an error saying:

hg branch -y branchname abort: a branch of the same name already exists

(use 'hg update' to switch to it)

Completed with errors, see above.

like image 289
genep Avatar asked Jan 27 '26 14:01

genep


1 Answers

To reopen a closed branch you use hg update instead of hg branch. Just use hg update branchname then next time you commit the branch will be marked as open.

like image 130
Eric Y Avatar answered Jan 30 '26 05:01

Eric Y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!