

PS D:\Dev\Unit圜hat> git remote add origin Once the repository is created you can push your local repository on Github with: You can do this by clicking the ‘+’ sign on your profile page. Go to your github account and create a new repository. If anything has gone wrong you can reset the repository with: hg gclearĬommand. You can check the status of your repository to make sure everything is in place: hg folder and there you have a git repository. To do this, you have to set the bare flag of your repository to false and reset the repository to start fresh (still in Powershell or Command Prompt):Īlmost there! your folder structure should look like this Bare repositories are generally used for sharing purposes, so what you need is a working directory instead: that is where you will be able to do ‘commit’ and ‘push’ onto your repository. In order to do the conversion you’ll need to open your Powershell / Command Prompt, navigate to your mercurial repository and then execute in order: This file is usually found in C:\Users\YOUR_USER\mercurial.ini Now that is enabled, we need to add a few extra settings to our mercurial settings file. Open TortoiseHG workbench, go to File -> Settings and the Extension tab: select hggit.

Once everything is installed there are a few extra steps before the convertion.
#TORTOISEHG GIT REMOTE ERROR INSTALL#
Next install TortoiseHG from here: I use it as a Mercurial client but it also has a neat and useful extension which we are going to use to convert Hg to Git, called hggit. Prerequisite – Install Git and TortoiseHG (Windows)įirst, I had to install Git (of course!) You can follow this link that has a super useful guide to do so and it’ll tell you all you need to know. But what if… what if I wanted to move them to Git and keep all the previous changelists. My very first question was: how can I move Mercurial repositories into Git? I could just copy/paste the projects in the state they are and create a brand new Git repository with them. Also, I discovered Github does not use Mercurial but uses Git as their distributed version control system.įor this reason I decided to try Git and learn how it works.
#TORTOISEHG GIT REMOTE ERROR CODE#
I then realised that many many many many people use Github to share code and work on open source projects. I then installed TortoiseHG on my Windows machine, created a BitBucket account and there I was, using Mercurial as my repository of choice. So, when tasked to choose my repository I just picked up what a friend of mine recommended. Back in the day when I started Uni, I had no idea what Version Control was.
