About Git Repository File Paths

The file paths in Git repository are set relatively internally. Therefore, it's safe to rename or move local Git repos from one location to another.

There are only exceptions when you use submodules or git hooks with absolute paths.

Tips and Tricks Development Developer Experience Git