Difference between revisions of "Git"

From ITSwiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(How to get an account?)
(Creating repositories and setting permissions)
Line 18: Line 18:
 
Once your account have been created, you can clone the gitolite-admin repo by
 
Once your account have been created, you can clone the gitolite-admin repo by
 
<pre>
 
<pre>
git clone IMMinitialsHere@git.imm.dtu.dk:gitolite-admin
+
git clone dtuInitials@git.imm.dtu.dk:gitolite-admin
 
</pre>
 
</pre>
where IMMinitialsHere should be replaced by your IMM initials which are 4 or more letters long.
+
where dtuInitials should be replaced by your IMM initials which are 4 or more letters long.
  
 
This repository is where you create repositories, add users, and set permissions for the users.
 
This repository is where you create repositories, add users, and set permissions for the users.

Revision as of 13:38, 18 October 2012

How to get an account?

IMM employees and P.hD's can get a git account by sending an email to IT Service with your SSH public key which you find in ~/.ssh/*pub. E.g. ~/.ssh/id_rsa.pub.

If you don't have a publick then you can create one by

ssh-keygen -N '' -t rsa -f ~/.ssh/id_rsa

It is important that you keep your private key (~/.ssh/id_rsa) and public key safe and have a backup. Should someone get hold of your private key, then all your git repositories can get accessed by that person.

Disk space

Creating repositories and setting permissions

Once your account have been created, you can clone the gitolite-admin repo by

git clone dtuInitials@git.imm.dtu.dk:gitolite-admin

where dtuInitials should be replaced by your IMM initials which are 4 or more letters long.

This repository is where you create repositories, add users, and set permissions for the users.

Create repository

Add user to repository