Browse Source

Use HTTPS instead of SSH for Git

pull/792/head
xpetit 3 years ago
parent
commit
0fce7a4ff5
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 36
      subjects/introduction/README.md

36
subjects/introduction/README.md

@ -10,41 +10,29 @@ 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 `choumi` this is the command that will need to be used :
First, tell Git to remember your password (like a web browser would):
`git clone git@git.((DOMAIN)):choumi/((ROOT)).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 must be configured.
Follow the steps below.
#### SSH Configuration
Execute the following commands:
```console
mkdir -p ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
cat ~/.ssh/id_ed25519.pub
```
git config --global credential.helper store
```
- Copy the result and paste it in the content field of adding an SSH key in your [Gitea settings](<https://git.((DOMAIN))/user/settings/keys>)
If your username was `choumi` this is the command that will need to be used:
- Confirm by clicking on the add key button.
```
git clone https://git.((DOMAIN))/choumi/((ROOT)).git
```
Once this is done the git clone command should work now.
This command needs to be adapted with **your own username**.
#### 2- set
Once the repository is created, write your first shell program called `hello.sh`
When executed this program must print `Hello choumi!`
Where `choumi` is your username
When executed this program must print `Hello choumi!`, where `choumi` is your username.
##### Usage
If the username is `choumi` :
If the username is `choumi`:
```console
$ ./hello.sh
@ -54,7 +42,7 @@ $
#### 3- go-say-hello
After that the `hello.sh` is executing correctly, it needs to be uploaded to the repository with the following commands :
After that the `hello.sh` is executing correctly, it needs to be uploaded to the repository with the following commands:
1. `git add hello.sh`
2. `git commit -m "My very first commit"`
@ -68,4 +56,4 @@ This action will run the tests on your submitted `hello.sh` file.
Videos designed to give **hints** are assigned to each quest. It is strongly suggested to watch them as you go.
There is subtitles available in French and English.
There is subtitles available in French and English.

Loading…
Cancel
Save