I want to add my angular folder as a submodule to my main directory. The angular folder is initizlied as a git repository. Also, the angular folder is a local folder with no url, existing only on my windows machine.
First, I successfully initiated git init from within my main repo. Then, I added folder1 successfully with
git add folder1
But, when I try
git submodule add .\angular\.git\
or
git submodule add .\angular\
I get the error "repo URL: '.\frontend.git' must be absolute or begin with ./|../"
main repo
│
└───folder1
│
└───angular
How can I add submodule angular to my main repo directory?