Actualiser README.md

This commit is contained in:
bastien 2025-04-10 06:16:20 +00:00
parent 9b48389388
commit 4fc26a9202

View File

@ -96,13 +96,12 @@ return 0;
| Indice | Commande | Description | | 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.| |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. |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. |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. |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. |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. |6. |git branch -v |Liste les branches sur le repo local.|
7. git branch -v -a Liste les branches sur le repo distant. |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.
9. git branch --merged Liste toutes les branches ayant subies un merge vers dautres branches. 9. git branch --merged Liste toutes les branches ayant subies un merge vers dautres branches.
10. git branch --no-merged Liste toutes les branches nayant jamais subies un merge. 10. git branch --no-merged Liste toutes les branches nayant jamais subies un merge.
11. git log Affiche lhistorique des commits effectués sur la branche courante avec leurs SHA1 (très verbeux). 11. git log Affiche lhistorique des commits effectués sur la branche courante avec leurs SHA1 (très verbeux).