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

committed by
GitHub

parent
6b167bcdd4
commit
8c8314f725
36
pages.fr/common/git-checkout.md
Normal file
36
pages.fr/common/git-checkout.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# git checkout
|
||||
|
||||
> Extraire une branche ou des chemins vers l'arborescence de travail.
|
||||
> Plus d'informations: <https://git-scm.com/docs/git-checkout>.
|
||||
|
||||
- Créer une branche et basculer dessus :
|
||||
|
||||
`git checkout -b {{nom_de_branche}}`
|
||||
|
||||
- Créer une branche depuis une reférence spçifiaue et basculer dessus (par exemple, branche locales/distantes, tag, commit) :
|
||||
|
||||
`git checkout -b {{nom_de_branche}} {{reference}}`
|
||||
|
||||
- Basculer sur une branche locale existante :
|
||||
|
||||
`git checkout {{nom_de_branche}}`
|
||||
|
||||
- Basculer sur la branche précedante :
|
||||
|
||||
`git checkout -`
|
||||
|
||||
- Basculer sur une brnche distante existante :
|
||||
|
||||
`git checkout --track {{nom_distant}}/{{nom_de_branche}}`
|
||||
|
||||
- Annule tout les changements dans le repertoire courrant (voir `git reset` pour plus de commandes d'annulation) :
|
||||
|
||||
`git checkout .`
|
||||
|
||||
- Annule tout les changements dans le fichier spécifié :
|
||||
|
||||
`git checkout {{filename}}`
|
||||
|
||||
- Remplace un fichier par sa version d'une autre branche :
|
||||
|
||||
`git checkout {{nom_de_branche}} -- {{filename}}`
|
Reference in New Issue
Block a user