Skip to content
Snippets Groups Projects
Commit 5b8b02f1 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

adding content to slides

parent 5c38d599
No related branches found
No related tags found
2 merge requests!31Regular merge of develop,!30Draft of training slides for January 24th, 2019
## Homework on GitLab
*This exercise has to be done on your lab computer on which `Matlab` **is** installed. Don't forget to properly configure `git` with your username and email, as we explained in the training slides.*
This exercise has to be done on your lab computer on which `Matlab` or `octave` **are** installed.
<div class="fragment">
<br>
During the training, you committed to the
<br>
[https://git-r3lab.uni.lu/git-training/practice](https://git-r3lab.uni.lu/git-training/practice)
repository.
More information on how install these software are on [mathworks.com](www.mathworks.com]) and on [gnu.org/software/octave](gnu.org/software/octave)
<div class="fragment">
<br>
Your task is to create a fork of this repository, commit some code and create a merge request on `GitLab`.
Don't forget to properly configure `git` with your username and email as explained in the training slides.
## Task
- create a fork of the repository <br>https://git-r3lab.uni.lu/R3/R3.practice
- commit some code
- create a merge request on `GitLab`.
## Homework: instructions
- First, fork the [https://git-r3lab.uni.lu/git-training/practice](https://git-r3lab.uni.lu/git-training/practice) repository.
## Detailed instructions
- First, fork the [https://git-r3lab.uni.lu/R3/R3.practice](https://git-r3lab.uni.lu/R3/R3.practice) repository.
- Create the new branch `homework_myName`.
- Implement a new function (create a new file `sqrt_myName.m`) called `sqrt_myName(x)` that computes the square root of `x`.
- Copy the `test.m` file to `test_myName.m` and change the names of the functions accordingly.
- Rename the `test.m` file in the `test/` directory to `test_myName.m`.
- Edit the file `test.m` and change the names of the functions accordingly.
- Before submitting the merge request, verify locally that your code is running properly.
......@@ -32,7 +40,7 @@ Your task is to create a fork of this repository, commit some code and create a
- Create a merge-request.
- Assign either Laurent (@laurent.heirendt) or Sylvain (@sylvain.arreckx) depending on your group and your merge-request will be reviewed by one of us.
- Assign @laurent.heirendt and your merge-request will be reviewed.
<br>
That's it!
......@@ -15,11 +15,7 @@ Install *Xcode Command Line Tools*
<br>
**Windows**
Follow instructions on *[git-for-windows.github.io](https://git-for-windows.github.io)*.
**or:** `MobaXTerm` with `git` plugin: *[mobaxterm.mobatek.net](https://mobaxterm.mobatek.net)*.
<small>More on *[git-scm.com/book/en/v2/Getting-Started-Installing-Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)*</small>
Install Git Bash: <br>`https://git-scm.com/download/win`
## How to start?
......@@ -61,6 +57,7 @@ $ git config --list
<br>
This should list the configuration with `user.name` and `user.email`.
## How to set my SSH key?
Check if you already have an SSH key:
......@@ -68,13 +65,16 @@ Check if you already have an SSH key:
```bash
$ ls -al ~/.ssh
```
If there is a file with an extension .pub, you already have an SSH key.
If there is a file with an extension `.pub`, you already have an SSH key.
<div class="fragment">
<br><br>
If you don’t have yet an SSH key, you have to generate one:
```bash
$ ssh-keygen -t rsa
```
<br>
Then, add the SSH key to Github/Gitlab (see demo).
......@@ -82,20 +82,29 @@ Then, add the SSH key to Github/Gitlab (see demo).
You can clone a repository with
```bash
$ git clone https://github.com/userName/myRepo.git myRepo
$ git clone git@github.com:userName/myRepo.git myRepo
```
<div class="fragment">
<br>
Clone the training repository with
If you did not configure your SSH key, clone using HTTPS:
```bash
$ git clone https://github.com/uni-lu/practice.git practice
$ git clone https://github.com/userName/myRepo.git myRepo
```
<br>
You may be prompted to enter your credentials.
<div class="fragment">
## Clone the practice repository
(Live Demo)
<br>
Clone the training repository! <br><br>
https://git-r3lab.uni.lu/R3.training/git.practice
<div class="fragment">
<br><br>
Any other rudimentary method such as
*'I simply download the `.zip` un unzip it - works like a charm!'*
......
......@@ -59,6 +59,12 @@
"data-background": "img/whiteBG.jpg"
}
},
{
"filename": "homework.md",
"attr": {
"data-background": "img/whiteBG.jpg"
}
},
{
"filename": "thanks.md",
"attr": {
......
......@@ -5,7 +5,7 @@
Start the Terminal from your `/Applications` directoy.
*Pro Tip:* Download iTerm2: <br>`https://www.iterm2.com`
*Pro Tip:* Install iTerm2: <br>`https://www.iterm2.com`
<br>
**Windows users:**
......@@ -14,7 +14,8 @@ Install Git Bash: <br>`https://git-scm.com/download/win`
<br>
**Linux users:**
Install Terminator: <br>`https://launchpad.net/terminator`
Launch default terminal.
*Pro Tip:* Install Terminator: <br>`https://launchpad.net/terminator`
......
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