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

17 lines
446 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 mv
> Déplacer ou renommer des fichiers inscrits dans l'index.
> Plus d'informations : <https://git-scm.com/docs/git-mv>.
- Déplace les fichiers dans l'index Git, valide au prochain commit :
`git mv {{chemin/vers/fichier}} {{new/path/to/file}}`
- Renome un fichier et met a jour l'index, valide au prochain commit :
`git mv {{filename}} {{new_filename}}`
- Force l'écrasement d'un fichier :
`git mv --force {{file}} {{cible}}`