2018年4月15日 星期日

[Git] accidentally commit node_modules, remove

[Git] accidentally commit node_modules, remove 


Solution


git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master


Reference:

https://gist.github.com/paulallies/0052fab554b14bbfa3ef