diff options
author | polo-pc-greta <ordipolo@gmx.fr> | 2025-02-07 12:43:05 +0100 |
---|---|---|
committer | polo-pc-greta <ordipolo@gmx.fr> | 2025-02-07 12:43:05 +0100 |
commit | 7544b94beca8e6321f09124b11db7d33fc736bae (patch) | |
tree | 9be7899c1d9db8d475bebdb8ef0259edecafae50 /TP GIT 1 installation.txt | |
parent | d74359ac2e66627e4b146b911650df28c51a732e (diff) | |
download | tp-git-7544b94beca8e6321f09124b11db7d33fc736bae.zip |
utf-8 parce ce que c'est mieux
Diffstat (limited to 'TP GIT 1 installation.txt')
-rw-r--r-- | TP GIT 1 installation.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TP GIT 1 installation.txt b/TP GIT 1 installation.txt index 7d40d2b..fa04d52 100644 --- a/TP GIT 1 installation.txt +++ b/TP GIT 1 installation.txt | |||
@@ -6,18 +6,18 @@ git config --global user.name "username" | |||
6 | git config --global user.email "e-mail" | 6 | git config --global user.email "e-mail" |
7 | 7 | ||
8 | sur github | 8 | sur github |
9 | - créer un "nouveau repository" avec un nom concis en minuscules et avec des tirets | 9 | - créer un "nouveau repository" avec un nom concis en minuscules et avec des tirets |
10 | - le rendre "public" | 10 | - le rendre "public" |
11 | - récupérer son adresse HTTPS | 11 | - récupérer son adresse HTTPS |
12 | 12 | ||
13 | dans la console télécharger le dépôt et entrer dedans: | 13 | dans la console télécharger le dépôt et entrer dedans: |
14 | git clone url.git | 14 | git clone url.git |
15 | cd nom_depot | 15 | cd nom_depot |
16 | 16 | ||
17 | créer le readme.md | 17 | créer le readme.md |
18 | echo "Bonjour" > README.md | 18 | echo "Bonjour" > README.md |
19 | 19 | ||
20 | afficher l'espace de staging (on a de nouveaux fichiers non commités) | 20 | afficher l'espace de staging (on a de nouveaux fichiers non commités) |
21 | git status | 21 | git status |
22 | 22 | ||
23 | ajouter ou modifier un fichier | 23 | ajouter ou modifier un fichier |
@@ -30,10 +30,10 @@ git rm --cached "fichier" | |||
30 | annuler un "add" et retirer le fichier du projet | 30 | annuler un "add" et retirer le fichier du projet |
31 | git rm -f --cached "fichier" | 31 | git rm -f --cached "fichier" |
32 | 32 | ||
33 | je me suis trompé mon fichier README.md s'appelle en fait readme.md | 33 | je me suis trompé mon fichier README.md s'appelle en fait readme.md |
34 | git rm -f --cached readme.md | 34 | git rm -f --cached readme.md |
35 | git add README.md | 35 | git add README.md |
36 | git status montre que le fichier a bien été renommé | 36 | git status montre que le fichier a bien été renommé |
37 | 37 | ||
38 | commit | 38 | commit |
39 | git commit -m "ajout du fichier README.md" | 39 | git commit -m "ajout du fichier README.md" |