Hg To Git
Now that you have an hg repository that can push pull to from a git repository you can fetch updates with hg pull.
Hg to git. On the command line make sure hg git is enabled correctly by running. This is the hg git plugin for mercurial adding the ability to push to and pull from a git serverrepository from mercurial. Using hg git to interact with a hg repository with git. This enables the hg git extension and instructs it to create git repository directories next to hg repository directories instead of putting them in subdirectories named git.
Editr the hg hgrc or your hgrc if you want to make this the default. This means you can collaborate on git based projects from mercurial or use a git server as a collaboration point for a team with developers using both git. Git clone git repo or cz fast export git step 2. This can either be done by editing the mercurial ini file that tortoisehg puts in your user folder or just enable it for this one repository by editing or creating the hgrc file in the hg folder and adding the following configuration extensions hggit c users mark code temp hg git hggit.
Cd hg git an hg repository edit hg hgrc and add the target git url in the paths section hg push this will convert all your hg data into git objects and push them to the git server.