Rename files and folders with git

Avec le renommage de "anciendossier" depuis l'explorateur windows

$ git status
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        deleted:    anciendossier/monfichier.txt

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        nouveaudossier/

Avec un git mv

$ git mv anciendossier/ nouveaudossier/
$ git status
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        renamed:    anciendossier/monfichier.txt -> nouveaudossier/monfichier.txt