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?
question from:
https://stackoverflow.com/questions/65948612/git-how-to-add-submodule-without-a-url 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…