So I'm having this project where some parts have been developed in the main repo but can be moved to an independently developed sub-module :
./ ← repo root
├── client-angular/
│ └── whatever/
├── resources/
│ └── script/ ← wanna be sub-module
└── server-codeigniter/
Question
How can I make the script/
directory into a git submodule with minimal effort ?
It is currently tracked by the main repo.