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

link to icon for live demo

parent d35d9405
No related branches found
No related tags found
2 merge requests!37Regular merge of develop,!36Training slides for Jan 24
......@@ -16,7 +16,7 @@ A **version** of the code is referred to as a **branch**.
<div class="fragment">
<br><br>
(Live Demo)
<img src="img/icon-live-demo.png" height="100px">
<br>
......@@ -64,7 +64,9 @@ You can switch to the `develop` branch with
$ git checkout develop
```
(Live Demo)
<div class="fragment">
<br>
<img src="img/icon-live-demo.png" height="100px">
## Create your own version
......@@ -90,5 +92,7 @@ Push your version to your fork:
$ git push origin add-2-numbers
```
<br><br>
(Live Demo)
<br>
<div class="fragment">
<br>
<img src="img/icon-live-demo.png" height="100px">
......@@ -17,17 +17,18 @@ $ git config --list
<br>
This should list the configuration with `user.name` and `user.email`.
<br>
Exit by typing `q`.
## What is an SSH key?
An SSH key is a secure access credential.
## Why do I need an SSH key?
<div class="fragment">
<br>
**Idea**: <br><br>
communicate **securely** with Github/Gitlab **without** entering the username/password.
**Principle**: <br><br>
Communicate **securely** with Github/Gitlab **without** entering the username/password.
## How do I get and set my SSH key?
......@@ -39,7 +40,7 @@ Check if you already have an SSH key:
$ ls -al ~/.ssh
```
<br>
If there are 2 files with `id_rsa` in their name, you already have an SSH key.
If there are 2 files named `id_rsa`, you have an SSH key.
<div class="fragment">
<br><br>
......@@ -49,5 +50,7 @@ $ ssh-keygen -t rsa -b 4096
```
<br>
Then, add the SSH key to Github/Gitlab (see demo).
Then, add the SSH key to Github/Gitlab.
<div class="fragment">
<img src="img/icon-live-demo.png" height="100px">
\ No newline at end of file
......@@ -34,13 +34,12 @@ Browse to the original repository and click on the button `Fork`:
![Fork the repo](https://help.github.com/assets/images/help/repository/fork_button.jpg)
(Live Demo)
<div class="fragment">
<img src="img/icon-live-demo.png" height="100px">
## Time to practice!
(Live Demo)
<br>
Fork the practice repository: <br><br>
......@@ -48,6 +47,10 @@ https://git-r3lab.uni.lu/R3school/git.practice
Then, clone your fork to your home directory!
<div class="fragment">
<br>
<img src="img/icon-live-demo.png" height="100px">
<div class="fragment">
<br>
```bash
......
......@@ -10,14 +10,19 @@ GitHub is **public**, whereas GitLab is **restricted/private**.
Positive point: GitHub and GitLab are (almost) the same.
## GitHub (Live Demo)
## GitHub
[www.github.com](www.github.com)
<br><img src="https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" style="width: 200px;"/>
<div class="fragment">
<img src="img/icon-live-demo.png" height="100px">
## GitLab (Live Demo)
## GitLab
[https://git-r3lab.uni.lu](https://git-r3lab.uni.lu)
<br><img src="https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo-extra-whitespace.png" alt="GitLab" style="width: 200px;"/>
<div class="fragment">
<img src="img/icon-live-demo.png" height="100px">
\ No newline at end of file
......@@ -21,7 +21,7 @@ $ sudo apt-get install git-all
## How to get started?
**Linux (Ubuntu)** and **macOS**
**macOS**
Start the `Terminal` or `iTerm`.
......@@ -30,6 +30,11 @@ Start the `Terminal` or `iTerm`.
Start `GUI Bash`.
<br>
**Linux (Ubuntu)**
Start the `Terminal` or `Terminator`.
## Is `git` properly installed?
......
......@@ -12,5 +12,6 @@ Use the **interface** to make use of your peers to review your code!
<br>
Once merged, you can delete the branch via the interface.
<div class="fragment">
<br>
(Live Demo)
\ No newline at end of file
<img src="img/icon-live-demo.png" height="100px">
\ No newline at end of file
......@@ -44,4 +44,4 @@ Do the same for the `develop` branch<br>
## Time to practice!
(Live Demo)
\ No newline at end of file
<img src="img/icon-live-demo.png" height="100px">
\ No newline at end of file
......@@ -8,4 +8,4 @@ Recommended editors:
## Visual Studio Code
<br>(Live Demo)
\ No newline at end of file
<br><img src="img/icon-live-demo.png" height="100px">
\ No newline at end of file
......@@ -43,7 +43,7 @@ in your home directory (unless otherwise configured), denoted as `~/`.
List the contents of a directory
```bash
$ ls
$ ls #-lash
```
<div class="fragment">
......
......@@ -11,7 +11,7 @@
<div align="left"><small>[1] *https://en.wikipedia.org/wiki/Git*</small></div>
## Funny story
## The inventor of `git`
![](img/git_definition.png)
<br><br>
......
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