Loading...
 

SetupGitHci

Install and setup Git for use at the HCI group


Install Git:

• MacOS
If you have Xcode installed, it is already there.
Otherwise install it with MacPorts or Brew:
sudo port install git
or with Brew:
brew install git

• Windows
Download the 64-Bit Git Standalone Installer.
https://git-scm.com/download/win

The standard installation options are suitable.

Setup:

On Windows please use the Git Bash only, for this guide.
For Mac use the Terminal.

Setup the local account:
git config --global user.name "Firstname Lastname"
git config --global user.email "email_address"
REMARK: Please don’t just copy! Insert your own appropriate data. ;-)

Create your key:
ssh-keygen -t rsa -C "firstname.lastname@stud.uni-bamberg.de"
Name the key files or use the standard name.
Hit Enter several times to bypass the passphrase.

Config your key in the HCI Gitlab:

Import your public key to the HCI Gitlab.
If your file have the standard name, type:
cat ~/.ssh/id_rsa.pub

The output should look something like:
ssh-rsa AAAB3NzaC1yc2EAAAADAQABAAABgQDUOQiwJWrKMfOV2ue+6P9cq9K/jUq/mWOgnyMgNwx+a9n1uMShy
GiuKUhvy4XJl75UGO56JgbkTzMHhsaWyckLmy9HDRe07Ialuxp29Meq5qXKmuzVknLk7C2H5G9YiAcLDHR4vEBjdct2
8/YB/7P3tU6o3HzsA3JC8sa0lXsqa67Ytjk+PKUrHH913YakMAjcCkKHx3gmlUPikv8aAW9ERmg0F37dK9KuaJc62RX
s/hMcQLg5RTEEirFjuCQtCPOUiQ4WLU8283jVW8ookhWFL2Ten6OXMWB3XxoVdU79W0QyrmFDjz+zZmPiHNy9k2J2ys
NivUgZGd/fVUXHItNoG66q3zA4I4HWCvWDWzQBJWUqsz3OkaZbC6neq8ZyTMD001ENMk7tbqAlBCihNBizUUWchucuF
oTZ3ai3f203nA4rPzddqc1XLiyNrEt8l9eVsD7lxKxYfk6AIPKQVUyLg+BZXFGNsWLb+uMMlVTEBc1dA9GGg6o3DW0t
AQeoCc= firstname.lastname at stud.uni-bamberg.de

Copy the complete output
and go to https://rcml.hci.uni-bamberg.de/keys/new
Insert the text into the key field and give it an appropriate name.

Configure key file/Domain combination for using the HCI gitlab:
REMARK:This is only necessary if multiple keys are used.

Go to your SSH configuration directory:
cd ~/.ssh/

If the file 'config' isn't here, you need to create it with 'touch config'.

Now add to 'config':
host rcml.hci.uni-bamberg.de
HostName rcml.hci.uni-bamberg.de
IdentityFile ~/.ssh/id_rsa
User firstname.lastname at stud.uni-bamberg.de
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
AddressFamily inet
REMARK:Replace the value for 'IdentityFile' and 'User'

That’s it! You successfully setup your HCI Gitlab account.
If you still have problems connecting, try again with the VPN connection activated.

If you have already a project on HCI Gitlab you should be able to clone it with a command like:
git clone git@rcml.hci.uni-bamberg.de:example_namespace/example.git




Social Media

Internal

Users [toggle]

8 online users

Chat [toggle]