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
cd parent-repo
- untrack
lib/one
- register
lib/one
as submodule - stage and commit.
Please clear next steps with git commands if it is possible.