Actualiser README.md

This commit is contained in:
bastien 2025-04-10 06:06:38 +00:00
parent 7790bf4d58
commit 9b48389388

View File

@ -95,11 +95,11 @@ return 0;
Commande Git Description succinte
| Indice | Commande | Description |
|--- |:-: |:-: |
|1. |git branch |newBranch Crée dans le repo local la nouvelle branche newBranch qui est un fork de la branche courante.|
2. git branch -m locBranch Renomme la branche courante avec le nouveau nom locBranch.
3. git branch -d locBranch Supprime la branche locBranch du repo local.
4. git branch -u origin/remBranch Ordonne à la branche courante de traquer la branche distante remBranch.
5. git branch --track locBranch origin/remBranch Similaire à la commande numéro 4, à la différence qu'on explicite la branche locale qui traque : locBranch.
|1.|git branch newBranch |Crée dans le repo local la nouvelle branche newBranch qui est un fork de la branche courante.|
|2.|git branch -m locBranch |Renomme la branche courante avec le nouveau nom locBranch.
|3. |git branch -d locBranch |Supprime la branche locBranch du repo local.
4. git branch -u origin/remBranch |Ordonne à la branche courante de traquer la branche distante remBranch.
5. git branch --track locBranch origin/remBranch |Similaire à la commande numéro 4, à la différence qu'on explicite la branche locale qui traque : locBranch.
6. git branch -v Liste les branches sur le repo local.
7. git branch -v -a Liste les branches sur le repo distant.
8. git branch -r | wc -l Compte le nombre de branches effectivement présentes sur le repo distant.