Usually, the .git directory resides inside the working tree of a non-bare repository, but there also might be .git file instead with an gitdir: <path> entry pointing to the admin-directory.
Is there a Git command that can move the directory around converting from .git directory to .git file or visa versa?