Remove directory from remote repository after adding them to .gitignore
git rm -r --cached node_modules git commit -m 'Remove the now ignored directory node_modules' git push origin master