Skip to content
Snippets Groups Projects
README.md 2.70 KiB

Source Package for Embedded Linux Lab

Command line instructions

0/ Create SSH keys for rights access on GitLab INSA account in terminal window

cmdline : ssh-keygen (fill all questions to empty)

Generating public/private rsa key pair.

Enter file in which to save the key (/home/user/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in id_rsa.

Your public key has been saved in id_rsa.pub.

1/ Add public key on GitLab INSA account on web browser

Display your public key : cat ~/.ssh/id_rsa.pub

Copy text and paste it to GitLAB INSA (Profile/Settings/SSH keys)

Zip .ssh folder and send by mail your secure key for future use

2/ Clone Teacher Repo in terminal window

Clone repo in your home : cd ~

git clone ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/EmbeddedLinux_UDOO-NEO.git

Go inside folder created : cd EmbeddedLinux_UDOO-NEO

3/ Config your git ID in terminal windows

git config --global user.name "Name SurName"

git config --global user.email "surname.name@insa-rennes.fr" (info stored in ~/.gitconfig)

4/ Open your GitLab INSA account on web browser

https://gitlab.insa-rennes.fr/

Ask Teacher to add you member of group EmbeddedLinux_UDOO-NEO with Maintainer rights

5/ Create your Repo on GitLab INSA on web browser

"New Project" button

Choose group "EmbeddedLinux_Group" (drop down menu Project path)

Name Project like "4CDTI-P2020-YourName-LabUdooNeo"

Add your co-worker as developer role (Settings/Members)

6/ Config origin-teacher & your origin repo in terminal window

git remote rename origin origin-teacher

git remote add origin ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/4CDTI-P2020-YourName-LabUdooNeo.git

git remote -v

7/ Push your local directory to your personal repo in terminal window

git status

git push -u origin --all

git push -u origin --tags

git status

9/ Check if your local repo is pushed on Gitlab repo on web browser

Check Activity, OK ?

10/ Submit your LAB codes in terminal window

git add .

git status

11/ Commit your modification when needed in terminal window

git commit -a -m "message to explain commit content"

or git commit -a

(vim command : 'i' to insert, 'ESC' to leave edit mode, ':wq' to save commit message)

12/ Push your modification on GitLab server in terminal window

git push origin master

git log

git log -p

git log --stat

13/ Check on GitLab server "new activity" on web browser

14/ If Teacher updates repo, in terminal window

get modification's historical from remote repo : git fetch origin-teacher master

check modifications by : git diff --name-only master origin-teacher/master

update (merge) modif by : git pull origin-teacher master

!!! Well Done !!!