Have a git repo named parent-repo. It has folder lib with libraries. 'lib/one' is under control of parent-repo. And now I want to make git to recognize lib/one as git submodule of parent-repo.
cd lib/one
git init
git add .
git commit -m 'first commit'
I think next steps are 0) cd parent-repo, 1) untrack lib/one, 2) register lib/one as submodule 3) stage and commit.
Please clear next steps with git commands if it is possible.