tldr/pages.fr/common/git-stage.md

34 lines
661 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# git stage
> Ajouter le contenu du fichier à la zone de préparation.
> Synonym of `git add`.
> Plus d'informations : <https://git-scm.com/docs/git-stage>.
- Ajouter un fichier à l'index :
`git stage {{chemin/vers/fichier}}`
- Ajoute tout les fichiers à l'index (suivis et non suivis) :
`git stage -A`
- Ajout uniquement des fichiers déja suivis :
`git stage -u`
- Ajout egalement des fichiers ignorés :
`git stage -f`
- Ajout des fichiers par parties, interactivement :
`git stage -p`
- Ajout d'un fichier par parties, interactivement :
`git stage -p {{chemin/vers/fichier}}`
- Ajout d'un fichier, interactivement :
`git stage -i`