Reputation:
So I'm trying to push my angular project to Github. The project structure is:
In order to push the angular project, I positioned myself in the root folder and executed the following commands:
The backend is pushed without any apparent issues, but the frontend will only push an empty folder as shown:
The file .gitignore only includes node_modules
to avoid pushing the node_modules folder (which works, as the node_modules is not being pushed).
However, the frontend is not being pushed at all.
Upvotes: 6
Views: 2952
Reputation: 570
Notice that when you run the ng new
command, it creates a git repository along with the angular project.
When git finds a repository inside another repository it only commits the reference to that repository which is what you show in the image as the folder with an arrow.
To solve this issue, you can
From what I have experienced, it solved the problem when I had it.
Upvotes: 7