2

Hi all,

I'm looking to do something quite simple - I'd like to duplicate a repository, but not save any of its history.

I suspect I might be able to simply delete the .hg folder from my local repository, and then clone a new empty repo into that directory, and then hg add all the files to the new repository.

This however is slightly convoluted, and I wondered if there is a simpler way.

Thanks, idbentley

flag

1 Answer

4

I would just delete the .hg directory, run:

hg init
hg add
hg commit --message "initial import"
hg push your-empty-remote-repo
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.