I'm tinkering with a library which is a part of a larger library collection, where the larger collection is a git(hub) repo, and so is the individual library; but - you have to clone the entire collection, with the specific library as a subrepo, just in order to work on the individual library, for various reasons (see my last question about setting this up).
So, I'm making changes to the repo code, which is checked out as a submodule. But - I notice I'm on a "detached head", i.e. if I commit - I can't just push it to the relevant branch on the library's remote repository.
- Can I arrange it so that commits do not, by default for this specific checked-out submodule, create a new detached head?
- If not, what's the right way to push my changes to the repository?