It's been about 6 months I used submodules for subprojects developed alongside a main project with a dev team.
- v-- Repository (developer(s)) --v
- Main project (dev team)
- Sub project 1 (me)
- Sub project 2 (me)
For several reasons now I'd like to consider my sub projects as regular files in the main repository.
So modifications in one of the sub projects ...
- ... should be committable from the main without having to commit and push from the sub project
- ... should still be committable from the sub project
The question is How to disable these submodules ?
I mean disable and not delete, as I need the files in the main repository
Here is what I did:
- Deleted
.gitsubmodule
- Deleted the submodule sections from
.git/config
rm --cached my_subprojects
git add/commit/push
Now when I try to merge this, the subprojects seem still considered as submodules as I still see
modified: Sub project 1 (new commits)
modified: Sub project 2 (new commits)