This project is intended for migrating multiple Git repositories to Deveo. Deveo is a code hosting solution that offers free private repository hosting for Git, Subversion and Mercurial repositories.
Python, Gitpython and requests:
pip install requests
pip install gitpython
First step is to modify the migrate.py file. You need to specify COMPANY_KEY, ACCOUNT_KEY, COMPANY_NAME, USERNAME and PASSWORD from Deveo side. From your current code hosting solution side, you need to specify domain including HTTPS credentials, and project and repository names inside a python dictionary in the form of:
{ "PROJECT-NAME": ["repository1-name", "repository2-name"],
"PROJECT2-NAME": ["repository3-name", "repository4-name"] }
After you have the modifications in place, you may execute the migration script as follows:
python migrate.py
The script works as follows:
- create a new project in Deveo
- Loop through the projects and for each project
- Create a new project to Deveo and for each repository inside that project:
- clone your existing repository in to a temporary directory
- create corresponding repository to Deveo
- push the changes to Deveo repository
- Delete the tepomrary directory
- Create a new project to Deveo and for each repository inside that project: