Skip to content

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

Notifications You must be signed in to change notification settings

HMKnapp/migrate-mercurial-to-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages