Open ummahusla opened 7 years ago
You can reference the .gitignore template: Node.gitignore 'node_modules/' is added in this '.gitignore'
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
Then check your repository.
@StephenGrider can you plz implement this issue as I just took your course and love to use this as a boilerplate for most of my students?
@aemal Stephen has great courses, but lack of response on his repositories is a bit frustrating.
.gitignore
file by using cmd git add .gitignore
/node_modules
inside the .gitignore filegit push origin master
check the repository with each push.
Add node_modules/
to your .gitignore file
How to Create .gitignore and add node_modules to it
touch .gitignore
echo node_modules >> .gitignore
then add, commit and push to the repository.How to remove node_modules from your repo after adding it to .gitignore
git rm -r --cached node_modules
git commit -m 'Remove node_modules'
git push origin master
I am also here for the solution of this issue with this #gitignore file To Remove node_modules Folder
pra min funcionou bem. obrigado
It's not really a good practice to keep no modules in the git repository.