Difference between revisions of "Git"
[unchecked revision] | [unchecked revision] |
(→Gitlab) |
|||
Line 36: | Line 36: | ||
== More to come == | == More to come == | ||
+ | |||
+ | = Migrating from Gitolite to GitLab = | ||
+ | Our existing Gitolite server (git.compute.dtu.dk) is considered deprecated, and everyone with active repositories there are encouraged to migrate. This can be done from a local PC with a cloned repo. | ||
[[Category:IT]] | [[Category:IT]] |
Revision as of 19:27, 29 November 2018
Contents
GitLab
To use git for your own and team projects, DTU Compute is providing a GitLab instance with all the benefits it offers. Primarily a place for your repositories, other features are or will become available.
Login with your DTU credentials here: https://lab.compute.dtu.dk
Add your public keys
To access your private repositories, add your public SSH-key to your GitLab account.
If you don't have a SSH-key, on Linux/MacOS you can use this command in your favourite shell:
ssh-keygen
Press Enter
3 times to create a password-less key pair, located in:
$HOME/.ssh/id_rsa $HOME/.ssh/id_rsa.pub
The file id_rsa.pub
is your public key which you can share with other systems, including DTU Compute's GitLab.
To add your public key in GitLab, follow these steps after login:
1) In the top-right corner click your user icon
2) Click Settings and on the left-hand panel click SSH Keys
3) Follow the instructions from here
Give access to other users
To share a repository with other users, the user you want to add has to login to GitLab first. Then you can find and add them as a member of your project.
1) Select your project you want to share
2) In the left-hand panel select Settings -> Members
3) Under Select members to invite search for the username
More to come
Migrating from Gitolite to GitLab
Our existing Gitolite server (git.compute.dtu.dk) is considered deprecated, and everyone with active repositories there are encouraged to migrate. This can be done from a local PC with a cloned repo.