mirror of
https://gitlab.com/bonnebulle/plain-html-redo.git
synced 2025-12-06 01:59:32 +01:00
fullyfly INIT
This commit is contained in:
32
README.md
32
README.md
@@ -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
1
fullyfly.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
TEST fullyfly
|
||||||
Reference in New Issue
Block a user