I have enough big project (MERN)
/Todo
--/client
--/here is react app
--/server.js
--/others folder for server
When I run git add .
git throws this error:
warning: adding embedded git repository:Todo/client
What should i do?
I have enough big project (MERN)
/Todo
--/client
--/here is react app
--/server.js
--/others folder for server
When I run git add .
git throws this error:
warning: adding embedded git repository:Todo/client
What should i do?
This is a warning; your Todo/client
folder already appears to be a git repository, so it's throwing you this as a warning. I expect that it isn't actually adding it, but that it's telling you so you can decide what to do.
In this case, it's not adding the client, and when you push it to another repository, you won't push that as well. When someone clones it, they won't have the client.
You could use submodules to solve this problem, or you can decide if it even needs to be a separate git repository and instead just add it as-is. Only you can make the decision as to what the solution is.