Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 653 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 653 Bytes

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