1

this issue is a bit similar to Is there a tool similar to repo or git-repo for hg/Mercurial?, the difference is my focus is how to mirror that hg repo to git repo?

is there a command like git hg clone?

i want to use git to manage my code, but some open source code is just hosted on hg, so how to mirror them to git repo?

btw, can i push hg repo to more than one hg repos?

Community
  • 1
  • 1
hugemeow
  • 7,777
  • 13
  • 50
  • 63
  • "can i push hg repo to more than one hg repos?" is a completely different question. Please post it as a separate question (or start by reading the `push` docs, though I suspect you may mean "at the same time"). – Chris Morgan Sep 24 '12 at 05:55

2 Answers2

0

Mirror git and mercurial repos the lazy way and here

Ami
  • 4,241
  • 6
  • 41
  • 75
  • "lazy way" isn't bullet-proof, because at least HG (can) have some meta-data in files inside WC-dir (.hgignore, .hgsub*) – Lazy Badger Sep 24 '12 at 07:52
0

1 Mirror from hg to git (and back) with hg-git

2 Yes, you can have any amount of remote repos of any (supported) type in [path] section for local repo and push to all and any of these repos by the a set of consecutive push or combining pushes into new command with the help of alias(es)

Community
  • 1
  • 1
Lazy Badger
  • 94,711
  • 9
  • 78
  • 110