Les aides: git help configgit help push git help pull git help branch Status des fichiers: git status Lister les branchs: git branch -a Créer une branch: #Créer et basculer sur la nouvelle branch .git branch nom_de_la_nouvelle_branchgit checkout nom_de_la_nouvelle_branchou #Créer et basculergit checkout -b nom_de_la_nouvelle_branch Supprimer un branch: #Si la branch est local et n’est pas créée sur le repo.git branch -d nom_de_la_branch_local#Si la branch est présente sur le repogit push origin –delete nom_de_la_nouvelle_branch Changer de branch: git checkout nom_de_la_branchougit switch nom_de_la_branch Premier commit: git add .git commit -m « initial commit« Commit suivant: git add chemin_vers_le_fichiergit commit -m « message du commit« Annuler le dernier commit et modifs: git reset –hard md5_commitgit push –force Mettre à jour le dépôt local: git pull Mettre à jour le dépôt local d’une branch spécifique: git pull origin ma_branch Envoyer ses commit vers le dépôt distant: git push Envoyer ses commits vers le dépôt sur une branch spécifique: git push origin ma_branch Supprimer un fichier du répertoire de travail et de l’index: git rm nom_du_fichier