Our development environment uses multiple repositories as part of an overall build system. The build dynamically adapts depending on which repositories you have checked out: if you don't need to build a particular component, just don't clone it.
However, once you have cloned a component, removing it from the build is problematic:
- You can delete the files in the working directory, but
git status
will show uncommitted changes - You can delete the repository, at the expense of re-cloning when you need it again
- You can move the repository, but your multi-repo tools might "helpfully" re-clone
Is there a better way to remove the working directory's files? Something akin to hg co null
or p4 sync ...#none
?