First Week Step by Step Tutorial



1) Go to http://git.fabacademy.org/
2) Login using the button "Sign in with Fablabs"
3) You will be prompted to enter a SSH KEY


Making a SSH KEY

4) In a terminal application check if you have a valid ssh key:
$ cat ~/.ssh/id_rsa.pub
cat: /Users/marduc/.ssh/id_rsa.pub: No such file or directory

That means that I have to make one
5) Generating a key:

$ ssh-keygen -t rsa -C "GitLab" -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (JUST USE THE DEFAULT SUGGESTION):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/myfolder/.ssh/id_rsa.
Your public key has been saved in /Users/myfolder/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256: STRING OF CARACTERS HERE GitLab
The key's randomart image is:
+---[RSA 4096]----+
| +OBo .=o..o.. |
|o*+oE ..o.... |
|=+. . . .o |
|.o. . .. |
|..o S .. |
| +.=. . ... |
|..B.+. . . |
|+ +O |
|o=o . |
+----[SHA256]-----+


Copying the SSH KEY:
Marc-Oliviers-MacBook-Pro:~ marduc$ cat ~/.ssh/id_rsa.pub
Copy the output from ssh-rsa to == GitLab inclusively

DONE!

Setting up GIT


Go to your http://git.fabacademy.org/ page
Create a project. It will probably ask you to add a password for your account. Do so and log back in.

Then go to your empty project, it will say: The repository for this project is empty

6) You should see this:


Command line instructions
Git global setup

git config --global user.name "yourusername"
git config --global user.email "youremail@.com"

Create a new repository

git clone git@git.fabacademy.org:ayourgit.git
cd fabacademy
touch README.md
git add README.md

git commit -m "add README"
git push -u origin master

Existing folder or Git repository


cd existing_folder
git init
git remote add origin git@git.fabacademy.org:marcolivierducharme/fabacademy.git
git add .
git commit
git push -u origin master



_____________________

7) Now that where your should encournter problems. I spend two hours reading last year students pages to no avail. No one provide a clear tutorial for that hence the present file.
A) There's so many issues with gitlab I can't dig in them. Ask your guru or check stackoverflow.