I’m trying to commit the initial project directory nitrogen created. However some directories in the lib directory can’t be added for example:
ookma@MSI MINGW64 /e/ookma-kyi (master)
$ git add *
warning: adding embedded git repository: lib/cf
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> lib/cf
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached lib/cf
hint:
hint: See "git help submodule" for more information.
What is the proper procedure for committing a nitrogen project?
Update:
Getting stuck at:
Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: lib/fs (untracked content)
modified: lib/mimetypes/ (untracked content)
modified: lib/qdate/ (untracked content)
modified: lib/qdate_localtime/ (untracked content)
Removing it via rm -f --cached I get stuck at
> Changes not staged for commit:
> (use "git add <file>..." to update what will be committed)
> (use "git restore <file>..." to discard changes in working directory)
> (commit or discard the untracked or modified content in submodules)
> modified: lib/mimetypes/ (untracked content)
> modified: lib/qdate/ (untracked content)
> modified: lib/qdate_localtime/ (untracked content)
Untracked files:
(use "git add <file>..." to include in what will be committed)
lib/fs/
lib/mimetypes/
lib/qdate/
lib/qdate_localtime/
Readding lib/fs:
$ git add lib/fs
warning: adding embedded git repository: lib/fs
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> lib/fs
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached lib/fs
hint:
hint: See "git help submodule" for more information.
I am basically stuck on a loop.