BRAINSTREAM.ch

Out of our Mind

how to gitlab on unix systems

Posted on | December 3, 2013 | No Comments

First of all you got to check wether git is installed yet or not. If it is not, install it from http://git-scm.com/download

Second, we prepare setup GitLab and ssh:

  1. Create a new SSH Key in your Terminal that fits your GitLab Account:
  2. You get asked where you should save the key at. Now you can choose the default oder choose a custom name. Choose the second and remember the path and filename! It is recommended to keep the directory ~/.ssh/ . You are free to choose any key-name.
  3. If you get asked for a passphrase, just hit enter and leave it blank.
  4. Now you need to copy your key. You can read it through the following command:
  5. On GitLab move to Profile › SSH Keys › Add SSH Key
  6. You can choose any title e.g. your computername
  7. Paste the key and save.
  8. Now we move back to the terminal and execute the following code:
  9. Now insert a new host in that file:
  10. It is important that you do not use the .pub key here since it is your public key, but what you need to decode messages, encoded with the public key is the private key!
  11. If you’ve done so:
  12. Well done, you have pushed your very first commit to your GitLab!
  13. Every time you got a new commit you want to push to GitLab, just do

Comments

Leave a Reply