fullyfly INIT

This commit is contained in:
vincent_b
2024-11-19 20:24:25 +01:00
parent 8984de22ea
commit 2bb97f4f97
2 changed files with 31 additions and 2 deletions

View File

@@ -159,16 +159,44 @@ CHECKOUT
Changer de branche Changer de branche
TUTO https://git-scm.com/book/fr/v2/Les-branches-avec-Git-Gestion-des-branches TUTO https://git-scm.com/book/fr/v2/Les-branches-avec-Git-Gestion-des-branches
Etat des fichiers :
> git status
Ajouter un fichier (ou tous *) Ajouter un fichier (ou tous *)
> git add ./README.md > git add ./README.md
> git add * > git add *
Etat des fichiers : Git commit
> git status > git commit
... on écrit les modifications apportées dans le navigateur text
... on peut installer nano https://command-not-found.com/nano
... ou utiliser vim...
.... on tappe -- ESCAPE + ":a" pour rendrer en mod édition
.... on quitte+save en tappant -- ESCAPE + ":wq"
.... on quitte no_save tappant -- ESCAPE + ":q!"
/OU/ directement depuis la commmande
> git commit -m 'initial commit of my project'
BRANCHES
TUTO : https://git-scm.com/book/fr/v2/Les-branches-avec-Git-Les-branches-en-bref
voir les branches ( locales + distantes ) voir les branches ( locales + distantes )
> git branch --all > git branch --all
changer (basculer de branche)
> git checkout -b forkit
revenir/changer à la branche d'origine "main" (ou "forkit")
> git checkout main
> git checkout forkit
merge
> git merge forkit
envoyer les modifications à une branche spécifique
> git push --set-upstream origin main
voir l'historique voir l'historique
> git log --pretty=format:"%h %s" --graph > git log --pretty=format:"%h %s" --graph

1
fullyfly.md Normal file
View File

@@ -0,0 +1 @@
TEST fullyfly