version control - Migrating from Mercurial to Git -
i know question asked before several times , marked "possible duplicate", none of them seems working correct. tried fast-export , gives error. how migrate mercurial git? need history. appreciated if listed step step.
update:
i tried fast export:
cd ~ git clone git://repo.or.cz/fast-export.git git init git_repo cd git_repo ~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo **[i error in line]** git checkout head
this gives error:
..... hg-fast-export.sh: line 79: python: command not found
thanks help!
- add hg-git mercurial
- push hg-repo git-target
step-by-step guide
a clone hg-git extension it's repository local path\to\hg-git
b enable extension in (global mercurial.ini or repository's-specific .hgrc)
[extensions] bookmarks = ... hggit = path\to\hg-git
bookmark added long time ago, when extension wasn't part of tortoisehg|mercurial, not sure today's configuration
c create new git-repository read|write access (or remeber existing?!)
d add git-repo p. c [paths]
section of .hgrc mercurial repository, want export in git under name. sample local mercurial repository, have git-mirror on github
[paths] default = git+ssh://git@github.com/lazybadger/fiver-l10n.git
e after can use git-repository usual remote repository in mercurial and, fist operation (for created empty git-repository) have push new remote
f check existence of git-repository full history mercurial mirrored after push
g use git-repository usual way
sources, used in guide
- local mercurial repository of wp-theme easy linear history
- git-mirror of repo on github
Comments
Post a Comment