A Git-hg Utility For Checking Out And Tracking A Mercurial Repo. - GitHub
- Notifications You must be signed in to change notification settings
- Fork 52
- Star 307
- Code
- Issues 17
- Pull requests 0
- Actions
- Projects
- Wiki
- Security 0
- Insights
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Latest commitHistory162 Commits | ||||
| bin | bin | |||
| fast-export @ f2491e8 | fast-export @ f2491e8 | |||
| .gitignore | .gitignore | |||
| .gitmodules | .gitmodules | |||
| LICENSE | LICENSE | |||
| Makefile | Makefile | |||
| README.markdown | README.markdown | |||
| package.json | package.json | |||
| View all files | ||||
Repository files navigation
- README
- MIT license
Description: A set of scripts for checking out and tracking a mercurial project from git. Push supported added as well although it is still experimental.
Author: Cosmin Stejerean (offbytwo)
License: MIT
Dependencies
Mercurial (hg) and python must be installed and in your $PATH.
On Windows, you will also need a copy of Mercurial for Python, available at the Mercurial downloads page
If this is a fresh checkout run
$ git submodule update --initto pull in fast-export. If for some reason you cannot do this get a copy of fast-export from http://repo.or.cz/w/fast-export.git and place it in the root of the checkout.
Installation
Either add /path/to/this/checkout/bin to your $PATH, or symbolic link /path/to/this/checkout/bin/git-hg into a directory on your $PATH.
Alternatively you can execute
$ make $ sudo make installto install the script and all required fast-export files in /usr/local (you can change the destination by passing eg PREFIX=/usr to both make invocations)
Usage
-
Clone an hg repo, including ones over HTTP:
$ git-hg clone http://some/random/hg/repo [local-git-repo-name] -
Fetch updates from the hg repo:
$ git-hg fetchor optionally:
$ git-hg pull # same as git-hg-fetch && git merge hg/branch_name -
Checkout a new branch from hg:
$ git-hg checkout branch_name -
Push changes back to hg, optionally to a specific destination:
$ git-hg push [destination]
Structure
.git/hgcheckout - contains a bare mercurial checkout of the specified repo
.git/hgremote - contains a bare git repo clones from the mercurial one, this is added as a remote called "hg" in the base repo
About
A git-hg utility for checking out and tracking a mercurial repo.
offbytwo.github.com/git-hgResources
ReadmeLicense
MIT licenseUh oh!
There was an error while loading. Please reload this page.
ActivityStars
307 starsWatchers
6 watchingForks
52 forks Report repositoryReleases
No releases publishedPackages 0
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
- Shell 82.0%
- Makefile 18.0%
Từ khóa » Hg 2 Git
-
Migrating To Git
-
Convert Mercurial Project To Git [duplicate] - Stack Overflow
-
How To Convert A Mercurial Repository To Git On Windows
-
Hg-Git Mercurial Plugin
-
Convert A Mercurial Repository To Git Using Hg-fast-export - DZone
-
Mercurial To Git Bridge, Pushed To Directly From The Hg-git Plugin In Hg
-
Hg-git - PyPI
-
What I Learnt Migrating To Git From Mercurial (updated June 2020)
-
Mercurial Vs. Git: How Are They Different? - Perforce Software
-
Mercurial SCM
-
Hg-git Package : Ubuntu - Launchpad
-
Migrating 140000 Commits From Mercurial To Git - Medium
-
PEP 512 – Migrating From To GitHub
-
How To Create Patch Series On Mercurial And Git - Redmine