From 17950a27ff0de9a3efb2e66bdf90004d996967eb Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Thu, 12 Jan 2017 14:12:08 +0100 Subject: [PATCH] New slides --- slides/list.json | 7 ----- slides/part-2-git-intro.md | 50 ++++++++++++++++++++++++++++++++++- slides/part-4-first-repo.md | 2 +- slides/part-5-branches.md | 2 +- slides/part-6-remote.md | 4 +-- slides/part-7-github-pages.md | 9 +------ 6 files changed, 54 insertions(+), 20 deletions(-) diff --git a/slides/list.json b/slides/list.json index 0d978337..ce2af0aa 100644 --- a/slides/list.json +++ b/slides/list.json @@ -8,43 +8,36 @@ { "filename": "part-2-git-intro.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-3-installation.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-4-first-repo.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-5-branches.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-6-remote.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-7-github-pages.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } }, { "filename": "part-8-thanks.md", "attr": { - "data-background": "../img/gray-linen-background-texture_58348.jpg" } } ] diff --git a/slides/part-2-git-intro.md b/slides/part-2-git-intro.md index c73cbb7b..1913f7d3 100644 --- a/slides/part-2-git-intro.md +++ b/slides/part-2-git-intro.md @@ -1,10 +1,17 @@ # Overview +0. The Linux Terminal 1. What is `git`? Why do I need it? (5 min) 2. GitHub and GitLab (5min) * Practical session (5 min) + - GitLab interface + - GitHub interface 3. The 5 essential commands (10 min) * Practical session (15 min) + - init + - clone + - add + - 4. Branches (10 min) * Practical session (10 min) 5. Forks (10 min) @@ -12,13 +19,54 @@ 6. Evaluation (10 min) +## The Linux Terminal + +Starting the terminal presents itself with a line where you can enter a command: +```sh +michael@myComputer> +``` +Often written, for covenience, as: +```sh +$ +``` +When you open your terminal (git shell) and unless otherwise configured, you are located +in your home directory, denoted as `~/`. + + +## Essential Linux commands + +List the contents of a directory +```sh +$ ls +``` + +Change the directory to a specific folder +```sh +$ cd myDirectory +``` + +Change the directory 1 level and 2 levels up +```sh +$ cd .. +$ cd ../.. +``` +Create a directory +```sh +$ mkdir myNewDirectory +``` + + ## What is `git`? Why do I need it? + +  Designed and implemented in 2005 by **Linus Torvalds** - +`git` is a version tracking system, essentially for code. +Collaborative platform for code development + ## The 5 essential commands diff --git a/slides/part-4-first-repo.md b/slides/part-4-first-repo.md index b87b25f0..e9862a19 100644 --- a/slides/part-4-first-repo.md +++ b/slides/part-4-first-repo.md @@ -1,4 +1,4 @@ -# The 5 commands +## The 5 commands ## Mon premier dépôt diff --git a/slides/part-5-branches.md b/slides/part-5-branches.md index 1ab12bad..ab002d29 100644 --- a/slides/part-5-branches.md +++ b/slides/part-5-branches.md @@ -1,4 +1,4 @@ -# Branches +## Branches Expérimentez en toute sécurité diff --git a/slides/part-6-remote.md b/slides/part-6-remote.md index a42416b2..0f6d3469 100644 --- a/slides/part-6-remote.md +++ b/slides/part-6-remote.md @@ -1,4 +1,4 @@ -# Remote +## Remote Parlons de dépôt *distant* @@ -49,4 +49,4 @@ Ou comment utiliser GitHub pour vos revues de code ## Fork -Contribuez à l'open source \ No newline at end of file +Contribuez à l'open source diff --git a/slides/part-7-github-pages.md b/slides/part-7-github-pages.md index 5ec61b5a..76259f13 100644 --- a/slides/part-7-github-pages.md +++ b/slides/part-7-github-pages.md @@ -1,10 +1,3 @@ -# GitHub Pages - -Ou comment héberger **gratuitement** votre portfolio - -Même s'il génère 1M de pages vues! - - ## Dépôt magique `<user>.github.io` @@ -31,4 +24,4 @@ Un simple fichier `index.html` suffit :) Utilisez un fichier `CNAME` à la racine du dépôt. [Détails](https://help.github.com/articles/setting-up-a-custom-domain-with-pages) -Exemple: [ssaunier.github.io/CNAME](https://github.com/ssaunier/ssaunier.github.io/blob/master/CNAME) \ No newline at end of file +Exemple: [ssaunier.github.io/CNAME](https://github.com/ssaunier/ssaunier.github.io/blob/master/CNAME) -- GitLab