Skip to content
Snippets Groups Projects
Commit 86d726e9 authored by Bourdel Laurent's avatar Bourdel Laurent
Browse files

README updated

parent 688d29ef
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,28 @@ Source Package for Embedded Linux Lab ...@@ -2,14 +2,28 @@ Source Package for Embedded Linux Lab
Command line instructions Command line instructions
0/ Clone Teacher Repo in terminal window
1/ Create your GitLab INSA account Clone repo in your home
git clone ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/EmbeddedLinux_UDOO-NEO.git
Go inside folder created : cd EmbeddedLinux_UDOO-NEO
1/ 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)
2/ Create your GitLab INSA account on web browser
https://gitlab.insa-rennes.fr/ https://gitlab.insa-rennes.fr/
Ask Teacher to add you member of group EmbeddedLinux_UDOO-NEO with Maintainer rights Ask Teacher to add you member of group EmbeddedLinux_UDOO-NEO with Maintainer rights
2/ Create your Repo on GitLab INSA 3/ Create your Repo on GitLab INSA on web browser
"New Project" button "New Project" button
...@@ -19,9 +33,7 @@ Name Project like "4CDTI-P2020-<YourName>-LabUdooNeo" ...@@ -19,9 +33,7 @@ Name Project like "4CDTI-P2020-<YourName>-LabUdooNeo"
Add your co-worker as developer role (Settings/Menbers) Add your co-worker as developer role (Settings/Menbers)
3/ Create SSH keys for rights access on GitLab INSA account 4/ Create SSH keys for rights access on GitLab INSA account in terminal window
Open terminal windows on your VM
cmdline : ssh-keygen cmdline : ssh-keygen
...@@ -39,33 +51,26 @@ Your public key has been saved in id_rsa.pub. ...@@ -39,33 +51,26 @@ Your public key has been saved in id_rsa.pub.
Display your public key : cat ~/.ssh/id_rsa.pub Display your public key : cat ~/.ssh/id_rsa.pub
5/ Add public key on GitLab INSA account on web browser
Copy text and paste it to GitLAB INSA (Profile/Settings/SSH keys) Copy text and paste it to GitLAB INSA (Profile/Settings/SSH keys)
Zip .ssh folder and send by mail yours keys for future use Zip .ssh folder and send by mail yours keys for future use
4/ Config your git ID 6/ Config origin-teacher & ryour origin repo in terminal window
git remote rename origin origin-teacher
git config --global user.name "Name SurName"
git config --global user.email "surname.name@insa-rennes.fr"
(info stored in ~/.gitconfig)
5/ Clone Teacher Repo
In terminal window, clone repo in your home
git clone ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/EmbeddedLinux_UDOO-NEO.git
Go inside folder created : cd EmbeddedLinux_UDOO-NEO
8/ Config origin & remote repo
...
9/ Check modification on your local repo (cd /H/STM32_Peripheral_LAB/MyGitWorkingRepo/)
git remote add origin ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/4CDTI-P2020-<YourName>-LabUdooNeo
git remote -v
7/ Push your local directory to your personal repo
git status
git push -u origin --all
git push -u origin --tags
git status git status
9/ Check if your local repo is pushed on Gitlab repo
OK ?
10/ Submit your LAB codes (cd /H/STM32_Peripheral_LAB/MyGitWorkingFolder) 10/ Submit your LAB codes (cd /H/STM32_Peripheral_LAB/MyGitWorkingFolder)
git add . git add .
...@@ -77,14 +82,13 @@ git status ...@@ -77,14 +82,13 @@ git status
git commit -a -m "message to explain commit content" git commit -a -m "message to explain commit content"
or git commit -a or git commit -a
(vim command : 'i' to insert, 'ESC' to leave edit mode, ':wq' to save commit message) (vim command : 'i' to insert, 'ESC' to leave edit mode, ':wq' to save commit message)
12/ Config & Push your modification on GitLab server 12/ CPush your modification on GitLab server
git remote -v git remote -v
git remote add origin (votre_repo) git remote add origin ssh://git@gitlab.insa-rennes.fr:16022/EmbeddedLinux_Group/4CDTI-P2020-<YourName>-LabUdooNeo
git push origin master git push origin master
...@@ -92,7 +96,7 @@ git push origin master ...@@ -92,7 +96,7 @@ git push origin master
14/ If Teacher updated repo, 14/ If Teacher updated repo,
get modification's historical from remote repo : git fetch origin master get modification's historical from remote repo : git fetch origin-teacher master
check modifications by : git diff --name-only master origin/master check modifications by : git diff --name-only master origin/master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment