diff --git a/README.md b/README.md index 542934f..029ffef 100644 --- a/README.md +++ b/README.md @@ -529,6 +529,7 @@ restaure /DO/ > git config --global core.editor nano + ( détail : https://git-scm.com/book/fr/v2/Démarrage-rapide-Paramétrage-à-la-première-utilisation-de-Git ) @@ -539,6 +540,7 @@ restaure ## Log Visualiser les modifications : > git log -p -2 + > git log --pretty=oneline ## History @@ -563,11 +565,14 @@ On peut retrouver les commit ici ; Envoi des modifications après un commit ( qui valides les modifications locales apportées à tel ou tel fichier ) + > git push + ( id + TOKEN ) préciser la branch à qui envoyer le commit (et fichiers) > git push --set-upstream origin main + ( id + TOKEN ) @@ -599,12 +604,15 @@ _CHECKOUT marche pour les retour vers une version passée/futur : un commit (has Depuis le terminal dans un dossier au choix > cd /chemin/vers/mon/dossier + > git clone https://gitlab.com/bonnebulle/plain-html-redo.git + > cd plain-html-redo ( affichier le fichier index dans le navigateur pour voir ) -> firefox ./public/index.html -> chromium ./public/index.html +> firefox ./public/index.html + +> chromium ./public/index.html 1. lister les comit précédents 2. revenir à telle version du projet ( + **hash/SHA** ) @@ -642,23 +650,34 @@ changer (basculer de branche) > git checkout -b forkit revenir/changer à la branche d'origine "main" (ou "forkit") -> git checkout main -> git checkout forkit +> git checkout main + +> git checkout forkit envoyer les modifications à une branche spécifique > git push --set-upstream origin main + + + + # Merge + > git merge forkit gestion de conflit de versions TUTO : - https://git-scm.com/book/fr/v2/Les-branches-avec-Git-Branches-et-fusions%C2%A0:-les-bases#s_basic_merging -> git status +> git status + > git mergetool +On peut regarder les diff(érences) apportées d'un commit à l'autre... depuis l'interface web de GitHub/Lab +Ou avec git diff /ou/ depuis vscode/IDE - +TUTO +https://www.atlassian.com/fr/git/tutorials/saving-changes/git-diff + @@ -715,12 +734,22 @@ project's **Settings**. Read more about [user/group Pages][userpages] and [project Pages][projpages]. + + + + + ## Did you fork this project? If you forked this project for your own use, please go to your project's **Settings** and remove the forking relationship, which won't be necessary unless you want to contribute back to the upstream project. + + + + + ## Troubleshooting 1. CSS is missing! That means that you have wrongly set up the CSS URL in your