git repository directory: hg gexport -debug Run the following command to make a bookmark of master for default, so a reference gets created: hg bookmark -r default master Navigate to the folder that contains your Mercurial repo and open a command prompt. If you get errors then it is not installed and you are probably going to need to google for some answers! That should yield some sensible-looking text. Then, on a command line, verify that it is installed by running the following: hg help hggit It’s worth doing that even if you are running TortoiseHg, in which case you would click the “Edit File” button after you have ticked the hggit extension. If you are using TortoiseHg then you can do this by selecting Global Settings, clicking on Extensions, and then ticking “hggit”.Īlternatively, edit your mercurial config file (located at %userprofile%\mercurial.ini), and ensure that it has the following lines: Preparationįirst, make sure that the hggit extension is enabled. However, it should still be useful even if you are not. It also assumes you are using Bitbucket as your host. This procedure assumes that you are running Windows, and you have Git for Windows installed, and that you selected “Use Git from the Windows Command Prompt” when you installed it. No copyright infringement is intended by this! I give full credit to Helge Klein and do not claim the work as my own. ![]() You can read the whole procedure at /blog/2015/06/… but I will reproduce the basic steps here in case that link ever goes dead. The procedure that I followed is from Helge Klein and the reason I used it over other methods is that it does not require you to download an additional plugin or extension. In the spirit of DataHamster, this is a quick précis of the steps needed to do conversion, with particular reference to Bitbucket. However, as I am now having to use git for client work, I have become comfortable with using git (especially via the excellent TortoiseGit) so it is time to convert. When Bitbucket shuttered its support for Mercurial and then eventually deleted all Mercurial repositories, I just carried on using Mercurial locally as I am a sole developer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |