Browse Source

kigiri -> choumi and fix subject

pull/329/head
Xavier Petit 5 years ago
parent
commit
c0b90bd08a
  1. 25
      subjects/introduction.en.md
  2. 16
      subjects/introduction.fr.md

25
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. This repository will be the folder where all the exercices must be uploaded.
Once created, clone that repository on your desktop. 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**. 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. If the `git clone` gives you an authenticity of host error, your SSH key must be configured.
Follow the steps below. Follow the steps below.
#### SSH Configuration #### SSH Configuration
**With the USB key plugged in!!** **With the USB drive plugged in!!**
Execute the following commands: Execute the following commands:
@ -29,10 +30,12 @@ mkdir -p ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '' ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
cat ~/.ssh/id_ed25519.pub 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.
@ -40,16 +43,16 @@ Once this is done the git clone command should work now.
Once the repository is created, write your first shell program called `hello.sh` Once the repository is created, write your first shell program called `hello.sh`
When executed this program must print `Hello {username}!` When executed this program must print `Hello choumi!`
Where `{username}` is your `username` Where `choumi` is your username
##### Usage ##### Usage
If the `{username}` is `kigiri` : If the username is `choumi` :
```console ```console
user@host:~/piscine-go$ ./hello.sh user@host:~/piscine-go$ ./hello.sh
Hello kigiri! Hello choumi!
user@host:~/piscine-go$ user@host:~/piscine-go$
``` ```

16
subjects/introduction.fr.md

@ -4,12 +4,12 @@
#### 1- get-ready #### 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. Une fois créé, cloner ce repository sur votre desktop.
Si votre `git username` était `kigiri` voici la commande qui devrait être utilisé : 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**. 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 #### 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}!` Quand ce programme est éxécuté il doit afficher `Hello {username}!`
`{username}` est votre `username` `{username}` est votre `username`
##### Utilisation ##### Utilisation
Si l'`{username}` est `kigiri` : Si l'`{username}` est `choumi` :
```console ```console
user@host:~/piscine-go$ ./hello.sh user@host:~/piscine-go$ ./hello.sh
Hello kigiri! Hello choumi!
user@host:~/piscine-go$ user@host:~/piscine-go$
``` ```
#### 3- go-say-hello #### 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` 1. `git add hello.sh`
2. `git commit -m "My very first commit"` 2. `git commit -m "My very first commit"`

Loading…
Cancel
Save