2014-07-14 3 views

Répondre

1

Selon la page de manuel git commandes theese sont égaux:

$ git help clone 
.... 
--branch <name>, -b <name> 
Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository’s HEAD, point to <name> branch instead. In a non-bare 
repository, this is the branch that will be checked out. --branch can also take tags and detaches the HEAD at that commit in the resulting 
repository. 
.... 

Comme vous pouvez le voir -b et --branch sont des synonymes. L'extension manquante .git (dans le premier cas) est déterminée automatiquement (en tenant compte du protocole git://) et l'ordre des paramètres n'a pas d'importance.