GitLab offers web-based git repository management, code reviews, issue tracking, activity feeds, wikis and more. You can access our DTU GitLab portal via https://gitlab.gbar.dtu.dk/.
The GitLab service is available to all current students, staff and faculty with your DTU credentials. You can currently create up to 20 projects. If you want to learn Git, you can check out the wiki page on Git.
Briefly outlined, here are a couple of steps to get you going:
- Login to the system at https://gitlab.gbar.dtu.dk/ (choose LDAP, and use your student login and password, e.g. s123456)
- Git is built up around the idea of using ssh keys for interaction with the repository. It's a good idea to create/add ssh keys to the system immediately. Information on how to add the ssh keys can be found at http://doc.gitlab.com/ce/gitlab-basics/create-your-ssh-keys.html.
- DigitalOcean has a nice write-up on how to use the GitLab user interface - check out https://www.digitalocean.com/community/tutorials/how-to-use-the-gitlab-user-interface-to-manage-projects.
- GitLab makes it easy to share projects between groups or move a personal project into a group project, if you have the appropriate rights in both places. Projects can also be moved between groups if the projects has expanded beyond its original purpose.
- Make sure you give your project a good descriptive name - i.e. something other than just "My project".
Migration from the old repos server to GitLab
It is possible to import an exisiting project from repository service at https://repos.gbar.dtu.dk to the new GitLab service. This section will take you through the steps involved:
1. Create a new project on GitLab by clicking the "New Project" button
2. Fill in the name and description of the project
3. Under the "Import project from" choose "Any repo by URL"
- You will need to know a couple of things from your existing project, specifically a user added under the project (not just your own login) and the project URL
- For a project "TestingGit" with the user test and password 1234 the URL will look something like http://test:email@example.com/git/s123456/TestingGit.git
4. Click "Create project", and the import will start - this step should be fairly quick, but might take some time depending on the size of the repository
5. You are now ready to use your project with GitLab!
If you have further questions, feel free to contact the Gbar-support.