So I'm trying to push my angular project to Github. The project structure is:
- backend (Node API)
- frontend (Angular)
- .gitignore
In order to push the angular project, I positioned myself in the root folder and executed the following commands:
- git add .
- git commit -m "First commit"
- git remote add origin URL_OF_MY_REPO
- git push -u origin master
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.
