I have a simple spring boot & angular app. I want to push it all to one repository but I have no idea how to ignore node_modules or how to use these two ,gitignore files on one push? Here is my project structure:
Edit the .gitignore file that is in the root (where the git repository was initialized) of your application and add
src/main/frontend/node_modules/
You can use multiple .gitignore files, but by default only the root one is used and if you just need to exclude the node_modules then the aforementioned solution will work.