Hg-Gitつかう

installation

sudo aptitude install mercurial git mercurial-git
vim ~/.hgrc

.hgrc

[extensions]
hgext.bookmarks =
hgext.git =

commands

mkdir gitrepos
mkdir hgrepos
cd gitrepos
git init --bare --shared repo_you_wanna_push_from_hg.git
cd ../hgrepos
hg clone http://localhost/hg/repo_you_wanna_push_from_hg
cd repo_you_wanna_push_from_hg
hg push ../../gitrepos/repo_you_wanna_push_from_hg.git

learned from id:moriyoshi