You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
2 years ago | |
---|---|---|
README.md | 2 years ago | |
authors.txt | 3 years ago | |
list_unknown_authors.sh | 3 years ago |
README.md
hg-git support tools
In the .hg/hgrc
of the Mercurial repository:
Add the gitea git repository
`gitea = git+ssh://gitea@gitea.pep.foundation:23065/<group>/<repo>.git`
Add the [git]
section
[git]
branch_bookmark_suffix=_git_pEpFnd
authors = ../hg-git-convert/authors.txt
Make sure to extend authors.txt by all unknown authors
cd repos/<your-repo>
../hg-git-convert/list_unknown_authors.sh
A bookmark per branch
Create a Hg bookmark for every Hg branch that should become a git branch too; the bookmark MUST carry the git.branch_bookmark_suffix configured earlier:
hg branch
hg bookmark -r ${branch} ${branch}_git
Profit: push to Git with Hg
hg push gitea ${branch}