間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

mercurial変換

git-hg
http://d.hatena.ne.jp/tyru/20100429/git_hg_and_hg_fast_export
http://offbytwo.com/git-hg/

#$ git clone git://github.com/offbytwo/git-hg
$ git clone https://github.com/cosmin/git-hg.git
$ ln -s `pwd`/git-hg/bin/git-hg /usr/local/bin/

めも
新規に出来たリポジトリ
http://d.hatena.ne.jp/gnarl/20120111/1326270674
を参考に既存リポジトリに統合

~/repo1 $ git remote add repo2 ~/repo2/
~/repo1 $ git fetch repo2

下記でとりあえず見えている気がするが詳細未確認

$ git-hg fetch
abort: repository .git/hgcheckout not found!
$ cp -rp ../repo2/.git/hgremote .git/
$ cp -rp ../repo2/.git/hgcheckout/ .git/
$ git-hg fetch
searching for changes
no changes found
このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。