From e21dd4afe938c2879f644c48c9a04f82ff04379b Mon Sep 17 00:00:00 2001 From: vincent_b Date: Tue, 19 Nov 2024 19:07:35 +0100 Subject: [PATCH] GIT Tuto_intro --- .idea/.gitignore | 3 ++ .idea/misc.xml | 6 +++ .idea/modules.xml | 8 ++++ .idea/plain-html-redo.iml | 9 ++++ .idea/vcs.xml | 6 +++ README.md | 88 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 120 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/plain-html-redo.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..1b2d693 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..d74ce38 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/plain-html-redo.iml b/.idea/plain-html-redo.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/plain-html-redo.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 3004e3b..81136fa 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,94 @@ Redirige vers = https://plain-html-redo-751743.gitlab.io . . . hébergement gratuit ! +--- + +Tuto : + +Objectif : +Cloner un projet initial existant +( clone + url ) +Comprendre le versionning + fork +( sauvegarder l'état d'un projet : commit + push ) +Revenir dans le temps à un état de sauvegarde passé +( grace à son identifiant unique : hash ) +Auto-héberger une page sur GitLab +( gratuit ) + + +Éditer du code ... +Le partager et envoyer les dernières modifications : +GITLAB permet de travailler sans rien installer ! +Il embarque un IDE (éditeur de code accessible en ligne ) +On va travailler à partir de cet interface web + +.... mais on peut aussi... +INSTALLER EN LOCAL : + ++ VSCODE / CODIUM : +? https://alternativeto.net/software/codium/ +! https://github.com/Alex313031/codium/releases +( WINDOWS : win32/64 .exe /ou/ MAC : x64/arm64 .dmg ) +! https://code.visualstudio.com/download + +passer en Francais : +https://www.it-connect.fr/tuto-changer-langue-visual-studio-code-francais-anglais/ + +? Alt : JETBRAINS IDE +https://www.jetbrains.com/webstorm/ + + +MAIS AUSSI : + ++ Terminal : +( utiliser la ligne de commande ) +https://openclassrooms.com/fr/courses/6173491-apprenez-a-utiliser-la-ligne-de-commande-dans-un-terminal/6349461-decouvrez-le-terminal#r-6349452 + +! Tuto (Anglais) +https://coolguy.website/map-is-the-territory/introduction.html + + ++ Git : +https://git-scm.com/downloads + +Vérifier via Terminal +> git -v + +--- + + +CREER UN COMPTE GITlab +https://gitlab.com/users/sign_up + +. . . + +FORK PROJET +PAGE D'exemple : +https://gitlab.com/pages/plain-html + +On clic "Fork" +On présice la desintaion + nom du projet +EX/ https://gitlab.com/bonnebulle/plain-html-redo + +. . . + +PAGE ( projet accessible en ligne ) : +Dans le projet actuel on veut le transformer en page hébergée par Gitlab +-> GAUCHE -> Build > Pipeline +-> New Pipeline (boutton bleu) +-> Run Pipeline (boutton bleu) + +PAGE URL == +- https://USERNAME.gitlab.io/PROJECT_NAME + +. . . + +RETOUR AU PROJET +code (boutton bleu) +Ouvrir avec.... +---> Va ouvrir un IDE depuis lequel on pourra sauvegarder l'état d'avancement du projet (synchroniser avec le repertoire/projet GIT créé...) + + --- Example plain HTML site using GitLab Pages.