How to remove node_modules in git

You may accidentally add the node_modules or you forgot to add the node_modules directory to .gitignore list, no worry, you may remove it after you pushed to the git.

First, add the node_modules in to the .gitignore

vim .gitignore

After added the /node_modules and save it.

git rm -r --cached .
git add .
git commit -m "remove gitignore files"
git push origin master

exit code of #128 fatal: unable to connect to

I follow the Quickstart guide from FoundationPress and it display this error
[code lang=”bash”]
bower install && grunt build
bower foundation#* not-cached git://*
bower foundation#* resolve git://*
bower fontawesome#~4.3.0 not-cached git://
bower fontawesome#~4.3.0 resolve git://
bower fontawesome#~4.3.0 ECMDERR Failed to execute “git ls-remote –tags –heads git://”, exit code of #128 fatal: unable to connect to[0:]: errno=Connection timed out

I run this to solve this problem.

[code lang=”bash”]
git config –global url.”https://”.insteadOf git://