Move or rename files and update the Git index. More information: https://git-scm.com/docs/git-mv.
git mv path/to/file new/path/to/file
git mv path/to/file_or_directory path/to/destination
git mv --force path/to/file_or_directory path/to/destination