HMKnapp / migrate-mercurial-to-git

Easily mass migrate Mercurial repos to Git, Github, Gitlab, Bitbucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

migrate-mercurial-to-git

Usage

bash hg-to-git.sh <hg-repo-url> <git-repo-url>

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.

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

⚠️ <git-repo-url> overrides GIT_PREFIX


Acknowledgements:


PULL REQUESTS WELCOME

About

Easily mass migrate Mercurial repos to Git, Github, Gitlab, Bitbucket


Languages

Language:Shell 100.0%