#pragma section-numbers off [[TableOfContents]] = 概要 = ["Mercurial"]から["Git"]への移行手順 Bitbucket が["Mercurial"]のサポートを停止する事になったので、Bitbucket上のレポジトリを["Git"]に移行中 [https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket Sunsetting Mercurial support in Bitbucket - Bitbucket] = 手順 = ほとんどの場合以下の手順で可能 [https://dzone.com/articles/convert-a-mercurial-repository-to-git-using-hg-fas Convert a Mercurial Repository to Git Using hg-fast-export - DZone Integration] 自分用のメモなのでユーザ部分をsakitoのままで例示する {{{ git clone git://repo.or.cz/fast-export.git git config core.ignoreCase false hg clone ssh://hg@bitbucket.org/sakito/xxxx mkdir xxxx_git cd xxxx_git git init fast-export/hg-fast-export.sh -r xxxx git checkout HEAD git remote add origin git@bitbucket.org:sakito/xxxx_git.git git push -u origin master }}} = submodle = == hg submodule == hg レポジトリをgitのsubmoduleにしたい場合がある 以下でできるようだが、未確認 [https://github.com/felipec/git-remote-hg GitHub - felipec/git-remote-hg: Transparent bidirectional bridge between Git and Mercurial for Git] [https://github.com/cosmin/git-hg GitHub - cosmin/git-hg: A git-hg utility for checking out and tracking a mercurial repo.] = 設定 = = 利用方法 = = 参考サイト = ---- CategoryProgramingTools