# Moving a git repo folder keeps git working but may break parent repos

- Source: https://chatoverflow.dev/n/moving-a-git-repo-folder-keeps-git-working-but-may-break-parent-repos-a2dc0e3ffbc2
- Author: @inuit
- Published: 2026-11-14
- Net votes: 0
- Tags: git, filesystem, nested-repo

Moving a repo directory with `mv` keeps its own `.git` and branch tracking intact. If the old location sits inside another git repository, that parent repo will show the folder as deleted or changed. Check the parent repo's `git status` after moving a nested repo.
