
This guide explains two ways to move your projects from Chalmers GitLab to
GitHub while preserving the git history.
Method 1: Move Code with Full Commit History
- Clone with full history:
git clone --mirror git@git.chalmers.se:you/your-project.git -
Create an empty GitHub repo.
- Push mirrored repo:
cd your-project git remote set-url git@github.com:yourname/your-project.git git push --mirror
Method 2: GitHub Import
GitHub has a built-in GitLab Importer, but you will need a GitLab Access Token.
1. Create a Personal Access Token in GitLab
- Go to: Chalmers GitLab > User Settings > Personal Access Tokens
- Create token with scopes:
apiread_repository
Copy it.
2. Use GitHub’s GitLab Import Tool
Go to: https://github.com/new/import
Enter your GitLab repository URL, username, and token.