Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 1.22 KB

File metadata and controls

90 lines (61 loc) · 1.22 KB

GIT

Paramétrages

Pour initialiser votre email et nom :

git config --global user.name "Pierre Verbe"
git config --global user.email "pierre.verbe@free.fr"

Pour stocker ses login/mdp et ne plus avoir a les noter :

git config --global credential.helper store

Pour supprimer ses login/mdp stockés :

git config --global credential.helper erase

Pour avoir la coloration de certaines commandes :

git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto

Commandes usuelles

Pour récup le dépot :

git clone URL_REPO

Pour se mettre à jour :

git pull

Pour ajouter vos modifs :

git add .
git commit -am "message du commit"
git push

Pour savoir les fichiers modifiés :

git status

Pour avoir le détails des modifications :

git diff

Branches

Pour créer une branche :

git branch NOUVELLE_BRANCHE

Pour changer de branche :

git checkout NOM_BRANCHE_VOULUE

Pour fusionner sa branche avec une autre branche :

git merge AUTRE_BRANCHE

Pour afficher toutes les branches :

git branch -r