An open API service indexing awesome lists of open source software.

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

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*