{"id":13542376,"url":"https://github.com/felipec/git-remote-hg","last_synced_at":"2025-10-21T04:52:02.243Z","repository":{"id":16853211,"uuid":"19613141","full_name":"felipec/git-remote-hg","owner":"felipec","description":"Transparent bidirectional bridge between Git and Mercurial for Git","archived":false,"fork":false,"pushed_at":"2025-08-14T22:02:24.000Z","size":263,"stargazers_count":375,"open_issues_count":2,"forks_count":91,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-10-21T04:51:50.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipec.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-05-09T14:05:56.000Z","updated_at":"2025-10-20T13:09:08.000Z","dependencies_parsed_at":"2025-04-02T10:43:06.791Z","dependency_job_id":null,"html_url":"https://github.com/felipec/git-remote-hg","commit_stats":{"total_commits":349,"total_committers":19,"mean_commits":18.36842105263158,"dds":"0.11174785100286533","last_synced_commit":"7908c70efbd0420e21c2b0b7841b61e3b933be51"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/felipec/git-remote-hg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipec%2Fgit-remote-hg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipec%2Fgit-remote-hg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipec%2Fgit-remote-hg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipec%2Fgit-remote-hg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipec","download_url":"https://codeload.github.com/felipec/git-remote-hg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipec%2Fgit-remote-hg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280207189,"owners_count":26290616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T10:01:05.850Z","updated_at":"2025-10-21T04:52:02.215Z","avatar_url":"https://github.com/felipec.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"`git-remote-hg` is the semi-official Mercurial bridge from the Git project, once\ninstalled, it allows you to clone, fetch and push to and from Mercurial\nrepositories as if they were Git ones:\n\n--------------------------------------\ngit clone \"hg::http://selenic.com/repo/hello\"\n--------------------------------------\n\nTo enable this, simply add the `git-remote-hg` script anywhere in your `$PATH`:\n\n--------------------------------------\ncurl https://raw.githubusercontent.com/felipec/git-remote-hg/master/git-remote-hg -o ~/bin/git-remote-hg\nchmod +x ~/bin/git-remote-hg\n--------------------------------------\n\nThat's it :)\n\nObviously you will need Mercurial installed.\n\n== Configuration ==\n\nIf you want to see Mercurial revisions as Git commit notes:\n\n--------------------------------------\n% git config core.notesRef refs/notes/hg\n--------------------------------------\n\nIf you are not interested in Mercurial permanent and global branches (aka.\ncommit labels):\n\n--------------------------------------\n% git config --global remote-hg.track-branches false\n--------------------------------------\n\nWith this configuration, the 'branches/foo' refs won't appear.\n\nIf you want the equivalent of `hg clone --insecure`:\n\n--------------------------------------\n% git config --global remote-hg.insecure true\n--------------------------------------\n\nIf you want `git-remote-hg` to be compatible with `hg-git`, and generate exactly\nthe same commits:\n\n--------------------------------------\n% git config --global remote-hg.hg-git-compat true\n--------------------------------------\n\n== Notes ==\n\nRemember to run `git gc --aggressive` after cloning a repository, especially if\nit's a big one. Otherwise lots of space will be wasted.\n\nThe newest supported version of Mercurial is 6.2, the oldest one is 4.0.\n\n=== Pushing branches ===\n\nTo push a branch, you need to use the 'branches/' prefix:\n\n--------------------------------------\n% git checkout branches/next\n# do stuff\n% git push origin branches/next\n--------------------------------------\n\nAll the pushed commits will receive the \"next\" Mercurial named branch.\n\n*Note*: Make sure you don't have `remote-hg.track-branches` disabled.\n\n=== Cloning HTTPS ===\n\nThe simplest way is to specify the user and password in the URL:\n\n--------------------------------------\ngit clone hg::https://user:password@bitbucket.org/user/repo\n--------------------------------------\n\nYou can also use the https://mercurial-scm.org/wiki/SchemesExtension[schemes extension]:\n\n--------------------------------------\n[auth]\nbb.prefix = https://bitbucket.org/user/\nbb.username = user\nbb.password = password\n--------------------------------------\n\nFinally, you can also use the\nhttps://pypi.org/project/mercurial_keyring[keyring extension].\n\n=== Caveats ===\n\nThe only major incompatibility is that Git octopus merges (a merge with more\nthan two parents) are not supported.\n\nMercurial branches and bookmarks have some limitations of Git branches: you\ncan't have both 'dev/feature' and 'dev' (as Git uses files and directories to\nstore them).\n\nMultiple anonymous heads (which are useless anyway) are not supported: you\nwould only see the latest head.\n\nClosed branches are not supported: they are not shown and you can't close or\nreopen. Additionally in certain rare situations a synchronization issue can\noccur (https://github.com/felipec/git/issues/65[Bug #65]).\n\nLimitations of Git's https://git-scm.com/docs/gitremote-helpers[remote-helpers]\nframework apply.\n\n== Other projects ==\n\nThere are other `git-remote-hg` projects out there, but this is the original,\nwhich was distributed officially in the Git project.\n\nOver the years many similar tools have died out, the only actively maintained\nalternative is mnauw's fork of this project:\nhttps://github.com/mnauw/git-remote-hg[mnauw/git-remote-hg]. I've merged some of\nhis patches, and he has merged some of my patches, so the projects are mostly in\nsync, but not quite. In particular Nauwelaerts' fork has many administrative\nextensions, which although useful to some people, I don't believe they belong\nin the core.\n\nFor a comparison between these and other projects go\nhttps://github.com/felipec/git/wiki/Comparison-of-git-remote-hg-alternatives[here].\n\n== Contributing ==\n\nSend your patches to the mailing list git-fc@googlegroups.com (no need to\nsubscribe).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipec%2Fgit-remote-hg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipec%2Fgit-remote-hg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipec%2Fgit-remote-hg/lists"}