So, I have a folder called my-folder which has been initialised as a git repository. Inside this folder, I have another folder called my-project (it is an angular project). As you may know, an angular project has several files and folders in it.
I am trying to git add all of the contents of my-project. To do this, I use the following commands in git bash:
git add my-project
git add my-project/*
The second command is supposed to git add all of the contents of my-project (according to How to push a new folder (containing other folders and files) to an existing git repo?).
However, the second command gives me an error. It says
fatal: Pathspec 'my-project/README.md' is in submodule 'my-project'
I am relatively new to git. Could someone explain what this error means and how I could resolve it?
Thanks