mirror of
https://gitlab.com/bonnebulle/plain-html-redo.git
synced 2025-12-06 01:59:32 +01:00
fix sauts de lignes...
This commit is contained in:
41
README.md
41
README.md
@@ -529,6 +529,7 @@ restaure
|
|||||||
|
|
||||||
/DO/
|
/DO/
|
||||||
> git config --global core.editor nano
|
> 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 )
|
( 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
|
## Log
|
||||||
Visualiser les modifications :
|
Visualiser les modifications :
|
||||||
> git log -p -2
|
> git log -p -2
|
||||||
|
|
||||||
> git log --pretty=oneline
|
> git log --pretty=oneline
|
||||||
|
|
||||||
## History
|
## History
|
||||||
@@ -563,11 +565,14 @@ On peut retrouver les commit ici ;
|
|||||||
|
|
||||||
Envoi des modifications après un commit
|
Envoi des modifications après un commit
|
||||||
( qui valides les modifications locales apportées à tel ou tel fichier )
|
( qui valides les modifications locales apportées à tel ou tel fichier )
|
||||||
|
|
||||||
> git push
|
> git push
|
||||||
|
|
||||||
( id + TOKEN )
|
( id + TOKEN )
|
||||||
|
|
||||||
préciser la branch à qui envoyer le commit (et fichiers)
|
préciser la branch à qui envoyer le commit (et fichiers)
|
||||||
> git push --set-upstream origin main
|
> git push --set-upstream origin main
|
||||||
|
|
||||||
( id + TOKEN )
|
( 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
|
Depuis le terminal dans un dossier au choix
|
||||||
> cd /chemin/vers/mon/dossier
|
> cd /chemin/vers/mon/dossier
|
||||||
|
|
||||||
> git clone https://gitlab.com/bonnebulle/plain-html-redo.git
|
> git clone https://gitlab.com/bonnebulle/plain-html-redo.git
|
||||||
|
|
||||||
> cd plain-html-redo
|
> cd plain-html-redo
|
||||||
|
|
||||||
( affichier le fichier index dans le navigateur pour voir )
|
( affichier le fichier index dans le navigateur pour voir )
|
||||||
> firefox ./public/index.html
|
> firefox ./public/index.html
|
||||||
> chromium ./public/index.html
|
|
||||||
|
> chromium ./public/index.html
|
||||||
|
|
||||||
1. lister les comit précédents
|
1. lister les comit précédents
|
||||||
2. revenir à telle version du projet ( + **hash/SHA** )
|
2. revenir à telle version du projet ( + **hash/SHA** )
|
||||||
@@ -642,23 +650,34 @@ changer (basculer de branche)
|
|||||||
> git checkout -b forkit
|
> git checkout -b forkit
|
||||||
|
|
||||||
revenir/changer à la branche d'origine "main" (ou "forkit")
|
revenir/changer à la branche d'origine "main" (ou "forkit")
|
||||||
> git checkout main
|
> git checkout main
|
||||||
> git checkout forkit
|
|
||||||
|
> git checkout forkit
|
||||||
|
|
||||||
envoyer les modifications à une branche spécifique
|
envoyer les modifications à une branche spécifique
|
||||||
> git push --set-upstream origin main
|
> git push --set-upstream origin main
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Merge
|
# Merge
|
||||||
|
|
||||||
> git merge forkit
|
> git merge forkit
|
||||||
|
|
||||||
gestion de conflit de versions
|
gestion de conflit de versions
|
||||||
TUTO :
|
TUTO :
|
||||||
- https://git-scm.com/book/fr/v2/Les-branches-avec-Git-Branches-et-fusions%C2%A0:-les-bases#s_basic_merging
|
- 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
|
> 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].
|
Read more about [user/group Pages][userpages] and [project Pages][projpages].
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Did you fork this project?
|
## Did you fork this project?
|
||||||
|
|
||||||
If you forked this project for your own use, please go to your project's
|
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
|
**Settings** and remove the forking relationship, which won't be necessary
|
||||||
unless you want to contribute back to the upstream project.
|
unless you want to contribute back to the upstream project.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
1. CSS is missing! That means that you have wrongly set up the CSS URL in your
|
1. CSS is missing! That means that you have wrongly set up the CSS URL in your
|
||||||
|
|||||||
Reference in New Issue
Block a user