顯示具有 [Git] accidentally commit node_modules 標籤的文章。 顯示所有文章
顯示具有 [Git] accidentally commit node_modules 標籤的文章。 顯示所有文章

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