Cheatsheet - Ravi-Upadhyay/git-playground GitHub Wiki
GIT Cheatsheet (personal)
Index
- Ignore directories from commit:
git rm -r --cached node_modules
Ignore directories from commit
git rm -r --cached removes the node_modules folder from git control if it was added before. Otherwise, this will show a warning pathspec 'node_modules' did not match any files, which has no side effects and you can safely ignore. The flags cause the removal to be recursive and include the cache.