Migrate your Gitlab repositories to GitBlit
descriptionMigrate your Gitlab repositories to GitBlit
owners
last changeTuesday, December 1, 2020 08:05 +0000
size8 KB
stats3 commits and 0 tags in 1 day metrics
repository url
URL
https://git.goatpr0n.de/r/blog/gl2gb.git
R
Git
2020-12-01 JayPiKay
Fixed count and included progress message
5d7633 diff | tree
2020-12-01 JayPiKay
Create needed directories
4ed58d diff | tree
2020-12-01 JayPiKay
Initial commit
e1702a diff | tree
README.md

GitLab to GitBlit Migration

Install

Install requirements globally (requires root):

python -m pip install -r requirements.txt

Install requirements for your user:

python -m pip install --user -r requirements.txt

Configure

Modify the variables to your needs:

  • GITLAB_HOST = 'https://gitlab.com'
  • GITLAB_TOKEN = 'PersonalAccessToken_api'
  • GITBLIT_HOST = 'gitblit' # Change: Gitblit host address
  • GITBLIT_PORT = 29419 # Change: Gitblit ssh port
  • GITBLIT_USER = 'user'
  • GITBLIT_DIR = '/' # or 'project_name/' or f'~{GITBLIT_USER}' for private

Run

python gl2gb.py