git*: add French translation (#4619)
This commit is contained in:

committed by
GitHub

parent
6b167bcdd4
commit
8c8314f725
36
pages.fr/common/git-branch.md
Normal file
36
pages.fr/common/git-branch.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# git branch
|
||||
|
||||
> Commande git principale pour travailler avec des branches.
|
||||
> Plus d'informations: <https://git-scm.com/docs/git-branch>.
|
||||
|
||||
- Liste les branches locale, prefixe la branche courrante avec `*` :
|
||||
|
||||
`git branch`
|
||||
|
||||
- Liste toutes les branches (locale et distantes) :
|
||||
|
||||
`git branch -a`
|
||||
|
||||
- Affiche le nom de la branche courrante :
|
||||
|
||||
`git branch --show-current`
|
||||
|
||||
- Crée une nouvelle branche depuis le commit courrant :
|
||||
|
||||
`git branch {{nom_de_branche}}`
|
||||
|
||||
- Crée une nouvelle branche depuis un commit en particulier :
|
||||
|
||||
`git branch {{nom_de_branche}} {{commit_hash}}`
|
||||
|
||||
- Renommer une branche (ne pas se trouver sur la branche pour le faire) :
|
||||
|
||||
`git branch -m {{ancien_nom_de_branche}} {{nouveau_nom_de_branche}}`
|
||||
|
||||
- Supprimer un branche locale (ne pas se trouver sur la branche pour le faire) :
|
||||
|
||||
`git branch -d {{nom_de_branche}}`
|
||||
|
||||
- Supprimer une branche distante :
|
||||
|
||||
`git push {{nom_distant}} --delete {{nom_de_branche_distante}}`
|
Reference in New Issue
Block a user