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 storePour supprimer ses login/mdp stockés :
git config --global credential.helper erasePour avoir la coloration de certaines commandes :
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch autoPour récup le dépot :
git clone URL_REPOPour se mettre à jour :
git pullPour ajouter vos modifs :
git add .
git commit -am "message du commit"
git pushPour savoir les fichiers modifiés :
git statusPour avoir le détails des modifications :
git diffPour créer une branche :
git branch NOUVELLE_BRANCHEPour changer de branche :
git checkout NOM_BRANCHE_VOULUEPour fusionner sa branche avec une autre branche :
git merge AUTRE_BRANCHEPour afficher toutes les branches :
git branch -r