https://github.com/hmknapp/migrate-mercurial-to-git
Easily mass migrate Mercurial repos to Git, Github, Gitlab, Bitbucket
https://github.com/hmknapp/migrate-mercurial-to-git
git github mercurial migrate
Last synced: about 1 month ago
JSON representation
Easily mass migrate Mercurial repos to Git, Github, Gitlab, Bitbucket
- Host: GitHub
- URL: https://github.com/hmknapp/migrate-mercurial-to-git
- Owner: HMKnapp
- Created: 2020-12-23T12:17:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T07:01:20.000Z (about 5 years ago)
- Last Synced: 2024-03-22T21:34:56.578Z (about 2 years ago)
- Topics: git, github, mercurial, migrate
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# migrate-mercurial-to-git
## Usage
```sh
bash hg-to-git.sh
```
## Optional: Target Prefix
For batch migration you can optionally specify `GIT_PREFIX` in the environment.
The target repo is constructed from `GIT_PREFIX` plus the name of the HG repo.
```sh
export GIT_PREFIX="https://gitlab.com/user/group/"
bash hg-to-git.sh https://internal.sys/scm-webapp/hg/some_name
```
The target repo will be `https://gitlab.com/user/group/`**`some_name`**
> ⚠️ `` overrides `GIT_PREFIX`
---
## Acknowledgements:
* Uses https://github.com/frej/fast-export for the repo conversion
---
*PULL REQUESTS WELCOME*