<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on Pandurang Patil</title><link>https://www.pandurangpatil.com/tags/git/</link><description>Recent content in Git on Pandurang Patil</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 29 Oct 2013 01:53:00 -0700</lastBuildDate><atom:link href="https://www.pandurangpatil.com/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Convert mercurial (hg) to git repository for bitbucket</title><link>https://www.pandurangpatil.com/post/2013-10-29-convert-mercurial-hg-to-git-repository-for-bitbucket/</link><pubDate>Tue, 29 Oct 2013 01:53:00 -0700</pubDate><guid>https://www.pandurangpatil.com/post/2013-10-29-convert-mercurial-hg-to-git-repository-for-bitbucket/</guid><description>To convert hg repository on bitbucket to git repository follow below steps.
Create new repository with Repository Type selected as Git follow below commands with the assumption that you already have hg repository cloned on your system. If not then you first need to clone existing hg repository. Steps to follow
$ git clone git://repo.or.cz/fast-export.git $ mkdir &amp;lt;new git repo&amp;gt; $ cd &amp;lt;new git repo&amp;gt; $ git init $ ../fast-export/hg-fast-export.sh -r &amp;lt;path to hg local repository&amp;gt; $ git checkout HEAD $ git remote add origin https://&amp;lt;username&amp;gt;@bitbucket.</description></item></channel></rss>