Table des matières

Commandes GIT

Commandes

Utilisation courante

Savoir dans quelle branche on se trouve

commande git branch affiche

J:\webprojects>git branch
* installation-sécurité
  master

La branche ou l'on se trouve actuellement est précédée d'un *

Ajouter une branche

commande git branch %NomDeLaBranche%

J:\webprojects>git branch test
 
J:\webprojects>git branch     
* installation-sécurité
  master
  test

Basculer sur une autre branche

commande git checkout %NomDeLaBranche%

J:\webprojects>git checkout test
Switched to branch 'test'
 
J:\webprojects>git branch
  installation-sécurité
  master
* test

Fusionner deux branche

Sources & Ressources