Operate on Git repositories.
This extension is distributed with Mercurial asexperimental.
Author:Augie Fackler
This extension grants Mercurial the ability to operate on Git repositories.
Requires pygit2.
Install pygit2 into the Python used by your Mercurial:$(hg debuginstall -T'{pythonexe}') -m pip install --user pygit2
Enable the extension:
[extensions]git =
In the Mercurial 5.4 release:
git(1) must be used for all network operations (e.g. clone, push, pull, incoming, outgoing).
Only local branches are presented in Hg (as bookmarks). Usegit branch -t remotes/origin/branchname to see more upstream branches as bookmarks.
Example:
git clone git://...hg init --githg statushg loghg bookmarkshg diffhg addhg commitgit pushgit pull...
TheHgGit extension, which is installed separately from Mercurial, is more mature and more widely used.
It converts a git repository into a native Mercurial repository (including incremental imports). As a consequence:
TheConvertExtension, packaged with Mercurial, has Git support.
GitExtension (last edited 2020-09-24 17:33:01 bytimeless)