0% found this document useful (0 votes)
181 views122 pages

5 - GTA - Support de Cours - Partie Git Gitlab

This document provides an overview of a training on using Git with Gitlab. It discusses installing Git on Windows and Linux, initializing and committing to a local Git repository, viewing logs and differences between commits, ignoring files, undoing commits, using Git with remote repositories on Gitlab, and generating and adding SSH keys to access repositories securely. The training covers basic Git commands and workflows as well as more advanced topics like using Git with teams and Gitlab features.

Uploaded by

MedAyhem Kh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views122 pages

5 - GTA - Support de Cours - Partie Git Gitlab

This document provides an overview of a training on using Git with Gitlab. It discusses installing Git on Windows and Linux, initializing and committing to a local Git repository, viewing logs and differences between commits, ignoring files, undoing commits, using Git with remote repositories on Gitlab, and generating and adding SSH keys to access repositories securely. The training covers basic Git commands and workflows as well as more advanced topics like using Git with teams and Gitlab features.

Uploaded by

MedAyhem Kh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 122

Formation Git sous Gitlab

Anis Hachani
Formateur et consultant
Certifié
OCJP , RHCE 6&7, LPIC-3, OCP
, Comptia Security +, Agile ( PSM
), CISA

Formation LPIC 1 : Junior Level Linux


LPIC-1 105 Shells et les scriptes – 105.2 Personnalisation ou écriture de scripts simples

Creation d’un projet django


LPIC-1 105 Shells et les scriptes – 105.2 Personnalisation ou écriture de scripts simples

Creation d’un projet django


Formation Git sous Gitlab

• Git:
• Github, Svn, Gitlab, bitbucket git install ( windows,
linux )
• Travail unique
• merge confilts
• les branches
• Travail en mode équipe
• git flow
• Git ssh
• Gitlab - notification
Formation LPIC 1 : Junior Level Linux
Formation Git sous Gitlab

What is Git and Why Is It Useful?

     What is git and why would you want to use it?


If you accidentally delete your code, using git can help you get it back.
If you accidentally change your code and break something, git can revert it.
Git lets you share and exchange code with other developers easily.
If you want to know what recent changes you made to you code, git will show you.
Git lets you backup your code easily to a remote server.
Many more things!
     

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Git is a piece of software that allows you to perform version control.  Large
software projects require some piece of software to keep track of all the
different changes made to a code base in order to track things like:  Who
edited a certain file; what they changed; and how to get back to the
original code if necessary.  Git does all of these things and more, so it's
not surprising that most large software companies use git!
Git is a distributed version control system, and succeeds centralized
systems, such as CVS and SVN. Centralized systems required all
users to connect to a centralized server before editing a file. As a
distributed system, each user has all the code and revision history on the
computer they're working o

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Git software is installed on a workstation and acts as a client and a server. With SVN, there
is a separate server and client. With Git, every developer has a local copy of the full
version history of the project on their individual machine. With SVN, only the files a
developer is working on are kept on the local machine, and the developer must be online,
working with the server.
SVN users check out files and commit changes back to the server. Git changes happen
locally. The advantage is that the developer doesn’t have to be connected all the time.
Once all the files are downloaded to the developer’s workstation, local operations are
faster.
In the past, Git developers each having a copy of the full version history meant they could
easily share changes before pushing them to a central repository. Now all the sharing is
done in central repositories, like a GitHub. And, in today’s world, enterprises have projects
that span multiple repositories that include large binary files. As projects grow, 
storing locally is not really realistic or desirable. When it comes to Git vs. SVN
performance,  the client-server model of SVN outperforms with larger files and code bases.

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

• Git under window


• Git under linux : apt-get install git ,yum install git

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Start git locally , git init ( initiation de repository local ) 

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

git status, git add fichier, git commit -m ‘’message à ajouter’’

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
git config –global user.email
git config –global user.name anis
git log

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Modification du meme fichier readme une autre fois
git log –online : format du log en raccourcit

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
if we run git diff we get the differences between gits last known commited state and the current state of
the file

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
if we run git diff we get the differences between gits last known commited state and the current state of
the file

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
git add fichier ou bien git add . == apres l’ajout du fichier, on a lancé la commande git diff mais cette
Commande n’a pas affiché aucun resultat, aprce que notre fichier dans aller dans stage area ( zone stage )

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
git log --oneline

git show-ref –heads –hash : affiche l’emplacement actuel du header

git diff HEAD~1  == git diff 9398b88 : affiche l’emplacement entre le header actuel et le dernier commit

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Déplacer le header index or position

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Déplacer le header index or position
( déconseiller car elle supprime l’hitorique des
commit )
git checkout HEAD~ readme.txt
git checkout 6elf1 readme.txt

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Ajout d’un nouveau fichier fichier1.txt

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Suppression et récupération du fichier

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Deleting a file from the stage zone : git reset HEAD fichier2.txt

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Undo changes : retour en arrière après voir effectuer un commit sur un


fichier
How to git reset local commits
This Git tutorial focuses on the capacity to roll back changes, undo a local
commit and restore the development environment to an earlier and
possibly more stable state. For traversing the commit history and rolling
back to a previous state, you'll need the git reset hard command

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab creation d’un nouveau dossier projet 2 ( undo
changes ) : git reset –hard
Start git

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
git reflog : montre la nouvelle position du header après git rest – hard 5f6c

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Le fichier .gitignore pour empecher le tracking du fichier projet.txt
cat .gitignore : contient

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Nous pouvons ajouter des patterns au


fichier .gitignore à savoir *.pdf

How to make Git “forget” about a file that was tracked but is now in .
gitignore?

git rm --cached <file>

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Utilisation de git à distance

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Apperçu sur les licences des projets

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Création d’un projet ( repository) nommé tufleur : nous avons
une branche par défaut nommé master

C quoi SSH ? : exemple accés sans ssh et avec


ssh tufleur
- github : uses https and ssh

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Gitlab official documentation

https://docs.gitlab.com/ee/ci/README.html

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Génération des clés sous windows

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Sous linux mint

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Sous linux mint

cat /home/anis/.ssh/id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDfQjBpwwEgtdxpHyVe4ZhtDmrQ+VigiL9s/2Sojq0bWUh7lNdFs8IuQ0iy2KM
za/
oeZNxX5C2dgBTHGtAk2aLwJoXmc+wrtJn9frGFE8tR9IarR7mvhKvog6cVYbGPDnGvaog9GJuQjnhzAJMaqi0ymcABtwe
OKx1e7xGGuMtSH/
XyeXiMd5V4QM22UaKIOPRy262nHrUeV7UZ0AMFepTiScZbUJ6mcwWVYGq2mpKCbtnnoxJEWyoO40cgKnrytM2Qzx1
VNil1Sonydgot7LOJdkqUkL6ZmXmoxby7EEVxcs/3b0Qt7j1SYE/Z2NX0uM8CgFqFflxnRvCbjO+59YwH
[email protected]

Lien ssh du repository


[email protected]:anishachani/devops.git

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Import des clés sous gitlab

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Sous linux mint

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Les scénarios : la vie en rose


1- -Je viens de créer un repos distant dans le quel je l’ai initié avec un fichier
readme
2- j’ai fait git pull : téléchargé le repos en local
Mkdir cni
Git init
Git remote add cni ‘htpp:·….. ‘
Git remote -v
3- j’ai un ajouté un fichier du repos local
4 : j’ai fait git add, git commit et git pussh
5 : mis à jours dans le respo distante ( affichage liste de commites )

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Les scénarios : un conflit


1- on continue à travailler avec le repos distant
2- j’ai fait git pull : téléchargé le repos en local
3- j’ai un ajouté un fichier du repos local
4- j’ai ajouté aussi un fichier le dans le repos distant
– > repos distant déphasé du repos distant
5 : j’ai fait git add, git commit et git push
6 : Conflit et résolution du conflit

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
j’ai fait git init dans un repos local, j’ai ajouté un fichier, après, git add fichier,
git commit -m ‘mesg’, apres, j’ai essayé de faire un push dans un repos déjà
contenant de fichier

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Making the changes through gitlab interfaces


avec le web editor

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Exemple d’un merge conflict
1- création d’un fichier java
coté local

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Exemple d’un merge conflict
2- push du fichier dans le repertoir distant

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Exemple d’un merge conflict : modification de la meme ligne
3- modification du fichier coté Gitlab dans la meme ligne

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Exemple d’un merge conflict : modification de la
meme ligne
4- modification du fichier coté local dans la
meme ligne

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Auprès de la machine local j’ai essayé de faire un push, il m’a dit qu’il y
en un chagement auprès repos distant, il faut qu’on fait git pull avant

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Automerging : merge conflict in projet.java, j’essay dez coriger le
problem en editant le fichier projet .java ( nano projet.java)

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Automerging : merge conflict in projet.java, j’ai gardé uniquement la version
Local avec les parametre float

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Merging conflit : maintenant j’essaye de faire un push du fichier java corrigé
dans le repos distant

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Merging conflit : resultant dans le serveur distant 

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Gitlan for project : management :


Appercu sur les issues

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Appercu sur les labels : bug, documentation !!,


nous pouvons créer nos propres labels

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Les labels nous aide


À filtrer les issues

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Close issue : means issue resolved or we ddont


need to work on it anymore

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Issue borad

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Issuer board again like scrum board

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab

Gitlab Wiki : documentation tout au long du projet

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Les branches nous permet de travailler sans avoir toucher à notre code dans la
branche principale

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Git branch my_branch : create new branch name my_branch
Git branch -a : display all the branches
Git checkount cni : se déplacer sur la branche du cni

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Le contenu de la branche cni est identique à
celui du master

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
git checkout -b platform : creates and move to the platform branch
git branch tomy : creates the tomy branch and not move to tomy branch

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Delete a branch : git branch -d platform

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Le head maintenant est au début du cni ,remote/cni , new_branch et master

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
Ajout du fichier compilbranchcni.txt dans la branche cni

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
La commande git log –oneline –all – decorate –graph permet d’affiche les logs
combinés de tous les branches, après le commit on a bien remarqué
La branche cni est avancé maintenant d’un commit avec l’id cdc7282

Formation LPIC 1 : Junior Level Linux


Note : dans la branche master, on n’a pas le ficher compilbrancni.txt

Formation LPIC 1 : Junior Level Linux


Formation Git sous Gitlab
On va faire un merge de la branche cni avec la branche master avec la commande
git merge cni

Il faut sortir
de la branche
cni et
effectuer le
merge aupres
de la branche
master

Formation LPIC 1 : Junior Level Linux


Notre branche master est sychnronisé avec la branche cni, tandis que le repos
Distant n’est pas synchronisé ( tufleur/master)

Formation LPIC 1 : Junior Level Linux


Sol : git push tufleur master
Res : le fichier compilbranch s’ajout dans notre branche master

Formation LPIC 1 : Junior Level Linux


Ajout du fichier à la branche cni

Formation LPIC 1 : Junior Level Linux


Creation d’une nouvelle branche en local et création d’un nouveau fichier
fichier1.txt

Formation LPIC 1 : Junior Level Linux


Creation d’une nouvelle branche en local et création d’un nouveau fichier fichier1.txt
Push de la nouvelle branche new_branch dans notre repository distnant

Formation LPIC 1 : Junior Level Linux


Appercu de la nouvelle branche dans notre repository

Formation LPIC 1 : Junior Level Linux


Si nous voulons fusionner le contenue de notre branche new branch avec la branche
master, nous devons créer un merge request ( gitlab) avec github et bitbucket
on l’appelle un pull request

Formation LPIC 1 : Junior Level Linux


Avant de fusionné, normalement, nous devons avoir l’accord de l’administrateur du
Repos,

Formation LPIC 1 : Junior Level Linux


Submit a merge request :

Formation LPIC 1 : Junior Level Linux


Submit a merge request : the resultat of a merge request will be stored as a commit
Exemple : a merge request without an approver

Formation LPIC 1 : Junior Level Linux


Submit a merge request : the resultat of a merge request will be stored as a commit
Exemple : a merge request with an approver

Formation LPIC 1 : Junior Level Linux


appercu sur la gestion des users dans un repos

Les rôles : Guest report developer maintainer Owner


Acces permission

Formation LPIC 1 : Junior Level Linux


Guest report developer maintainer Owner
https://docs.gitlab.com/ee/user/permissions.html

Formation LPIC 1 : Junior Level Linux


Crea
Exemple ajout d’invitation d’un user
dans un repos

Formation LPIC 1 : Junior Level Linux


Crea

Exemple d’un merge request with an approver

Formation LPIC 1 : Junior Level Linux


Lets go back to out example and update our local master branch with our
remote branch

Formation LPIC 1 : Junior Level Linux


jusqu’a maintenant on a travaillé avec cette example

Formation LPIC 1 : Junior Level Linux


Dans le cadre professionnelle, on travail avec le modele Gitflow, on crée une branche
development, des sous branche features ( fonctionnalités)
On les merges avec developpement, si la branche developpement est
Stable on la merge avec la branche principale master

Formation LPIC 1 : Junior Level Linux


On crée la branche develpment, feature/vente , le head est identique ( feature/vente,
cn/master( remote), master(locale) et development)

Formation LPIC 1 : Junior Level Linux


Ajout du dossier vente ainsi du fichier vente.java,
Git add et git commit

Formation LPIC 1 : Junior Level Linux


Here we created and push our development et feature/ventre branches

Formation LPIC 1 : Junior Level Linux


l’affiche des 2 branches dans le repository

Formation LPIC 1 : Junior Level Linux


On va faire le merge entre la branche feature/vente et development

Formation LPIC 1 : Junior Level Linux


Submit a merge request

Formation LPIC 1 : Junior Level Linux


Mis à jours de la branche dévelopement après l’avoir fusionné avec la branche
vente

Formation LPIC 1 : Junior Level Linux


Mis à jours de la branche dévelopement en local auprès de la branche
development distante
git pull cni development

Formation LPIC 1 : Junior Level Linux


Maintenant on teste la version developement en local et qu’elle est bonne,
On part vers le repos distant et on fait le merge de la branche developmenet avec
la branche master

Formation LPIC 1 : Junior Level Linux


Ici la branche master en local n’est pas sync avec la branche master distante,
Elle ne contient pas le module vente

Formation LPIC 1 : Junior Level Linux


Maintenant notre branche master local est synchronisé avec la branche master
disante

Formation LPIC 1 : Junior Level Linux


We have a problem here that head is not at the master and the developement

Formation LPIC 1 : Junior Level Linux


We use the command git rebase to bring the head at the same level as for the
master and the development branch

Formation LPIC 1 : Junior Level Linux


Git mode collaborative

Formation LPIC 1 : Junior Level Linux


Git clone

Formation LPIC 1 : Junior Level Linux


Git clone

Formation LPIC 1 : Junior Level Linux


Crea

clone: copying the remote server repository to your local machine.


Add the remote server automatically
Clone is generally used to get remote repo copy.
pull: get new changes other have added to your local machine.
the remote server needsto be added manullay
Pull is used to view other team mates added code, if you are working in
teams.

git config –global http.proxy http://172.16.128.1:8080


Pull = fetch + merge

Formation LPIC 1 : Junior Level Linux


Crea

Collaborator push and pull with branches

Formation LPIC 1 : Junior Level Linux


Crea

Formation LPIC 1 : Junior Level Linux


Git mode collaborative

Formation LPIC 1 : Junior Level Linux


Crea

Formation LPIC 1 : Junior Level Linux


Formation DevOps Tools Engineer

Git tags

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Git tags

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Git tags, creation de 2 points de restauration v1.0 et v2.0

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Restaurer notre repository local vers la version v1.0 ! Git checkout V1.0

Note : git checkout v1.0 vous permet de revenir en arrière sans avoir effectuer des modifications, si nous
voulons faire des modification, on crée une branch à partir du point V1.0,

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Restaurer notre repository local vers la version v1.0 ! Git checkout V1.0

Note : git checkout v1.0 vous permet de revenir en arrière sans avoir effectuer des modifications, si nous
voulons faire des modification, on crée une branch à partir du point V1.0,

$ git checkout -b version2 v2.0


Switched to a new branch 'version2'
If you do this and make a commit, your version2 branch will be slightly different than your v2.0.0
tag since it will move forward with your new changes, so do be careful.

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Git submodules

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Je suis sur le tag v1.0, j’ai ajouté un fichier, j’ai fait un push, j’ai rien trouvé
sur le server

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Si nous
voulons
traivailler et
etre à
l’écoute
dans autre
répository
( mis à jours
d’une
librarie)
On utilise
les
submodules

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Ici j’ai modifié le sub


modules à gitlab

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Formation DevOps Tools Engineer

Je me déplace sous le dossier du submodule et je télécharge la mis à jours

Anis Hachani Formateur DevOps et Coach AgileOCJP, RHCE 6 & 7, DevOPS, LPIC-3, AWS, OCP, Comptia Sec+, Agile ( PSM I, PSPO, SMAC,
SPOAC ) chez Ghazela Technology Academy, www.ghazelatc.com, [email protected] , +216 71 866142, +216 54 828 018
Crea

clone: copying the remote server repository to your local machine.


Add the remote server automatically
Clone is generally used to get remote repo copy.
pull: get new changes other have added to your local machine.
the remote server needsto be added manullay
Pull is used to view other team mates added code, if you are working in
teams.

git config –global http.proxy http://172.16.128.1:8080


Pull = fetch + pull

Formation LPIC 1 : Junior Level Linux

You might also like