Migrate your Gitlab repositories to GitBlit
https://goatpr0n.farm/2020/11/migrating-from-gitlab-to-self-hosted-gitblit/
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 | |
gl2gb.py | 2 years ago | |
requirements.txt | 2 years ago |
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