From c0b90bd08aaa1495c056fe46f48b18ff1f8d66e4 Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Mon, 11 Nov 2019 00:23:58 +0100 Subject: [PATCH] kigiri -> choumi and fix subject --- subjects/introduction.en.md | 31 +++++++++++++++++-------------- subjects/introduction.fr.md | 16 ++++++++-------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/subjects/introduction.en.md b/subjects/introduction.en.md index 09aa14a9..e7883280 100644 --- a/subjects/introduction.en.md +++ b/subjects/introduction.en.md @@ -9,18 +9,19 @@ Create in your `git account` the repository named `piscine-go`. This repository will be the folder where all the exercices must be uploaded. Once created, clone that repository on your desktop. -If your `username` was `kigiri` this is the command that will need to be used : -`git clone https://01.alem.school/kigiri/piscine-go.git` +If your username was `choumi` this is the command that will need to be used : + +`git clone git@git.alem.school:choumi/piscine-go.git` This command needs to be adapted with **your own username**. -If the `git clone` gives you an authenticity of host error, your SSH key nmust be configured. -Follow the steps below. +If the `git clone` gives you an authenticity of host error, your SSH key must be configured. +Follow the steps below. -#### SSH Configuration +#### SSH Configuration -**With the USB key plugged in!!** +**With the USB drive plugged in!!** Execute the following commands: @@ -29,27 +30,29 @@ mkdir -p ~/.ssh ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '' cat ~/.ssh/id_ed25519.pub ``` --Copy the result and paste it in the content field of adding an ssh key in your settings (adapt the link with your username). -https://git.01.alem.school/{username}/settings/keys --Confirm by clicking on the add key button. +- Copy the result and paste it in the content field of adding an ssh key in your settings (adapt the link with your username). + +https://git.01.alem.school/choumi/settings/keys + +- Confirm by clicking on the add key button. -Once this is done the git clone command should work now. +Once this is done the git clone command should work now. #### 2- set Once the repository is created, write your first shell program called `hello.sh` -When executed this program must print `Hello {username}!` -Where `{username}` is your `username` +When executed this program must print `Hello choumi!` +Where `choumi` is your username ##### Usage -If the `{username}` is `kigiri` : +If the username is `choumi` : ```console user@host:~/piscine-go$ ./hello.sh -Hello kigiri! +Hello choumi! user@host:~/piscine-go$ ``` diff --git a/subjects/introduction.fr.md b/subjects/introduction.fr.md index 9265ae96..c86102fc 100644 --- a/subjects/introduction.fr.md +++ b/subjects/introduction.fr.md @@ -4,12 +4,12 @@ #### 1- get-ready -Créer dans votre `compte git` le répository nommé `piscine-go`. +Créer dans votre compte `git` le repository nommé `piscine-go`. -Une fois créé, cloner ce répository sur votre desktop. -Si votre `git username` était `kigiri` voici la commande qui devrait être utilisé : +Une fois créé, cloner ce repository sur votre desktop. +Si votre nom d'utilisateur `git` était `choumi` voici la commande qui devrait être utilisé : -`git clone https://01.alem.school/git/kigiri/piscine-go` +`git clone https://01.alem.school/git/choumi/piscine-go` Cette commande doit être adaptée avec **votre propre username**. @@ -17,24 +17,24 @@ Ce repository sera le dossier où tous les exercises doivent être uploadés. #### 2- set -Une fois que le répository est créé, écrire votre premier programme shell nommé `hello.sh` +Une fois que le repository est créé, écrire votre premier programme shell nommé `hello.sh` Quand ce programme est éxécuté il doit afficher `Hello {username}!` Où `{username}` est votre `username` ##### Utilisation -Si l'`{username}` est `kigiri` : +Si l'`{username}` est `choumi` : ```console user@host:~/piscine-go$ ./hello.sh -Hello kigiri! +Hello choumi! user@host:~/piscine-go$ ``` #### 3- go-say-hello -Après que `hello.sh` s'éxécute proprement, il doit être uploadé dans le répository avec les commandes ci-dessous : +Après que `hello.sh` s'exécute proprement, il doit être uploadé dans le repository avec les commandes ci-dessous : 1. `git add hello.sh` 2. `git commit -m "My very first commit"`