Files
tldr/pages.fr/common/git-clean.md
2021-05-01 12:49:31 -04:00

29 lines
606 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git clean
> Supprimer les fichiers non-suivis d'un dépôt Git.
> Plus d'informations : <https://git-scm.com/docs/git-clean>.
- Supprimer les fichiers non-suivis :
`git clean`
- Supprimer les fichiers non-suivis de manière interactive :
`git clean -i`
- Affiche les fichiers non-suivis qui peuvent être supprimés :
`git clean --dry-run`
- Nettoyage forcé des fichiers non-suivis :
`git clean -f`
- Nettoyage forcé des répertoires non-suivis :
`git clean -fd`
- Supprime tous les fichiers suivis, incluant ceux répertoriés par `.gitignore` et `.git/info/exclude` :
`git clean -x`