others-how to ignore tracked files or directory in git?
1. Purpose
In this post, I will demonstrate how to ignore tracked files or directory in git.
2. Solution
-
remove the files
- add to .gitignore
You can use
**
to ignore patterns:**/node_modules
- clear cache
git rm --cached -r <dir>
- commit
git commit
3. Summary
In this post, I demonstrated how to ignore tracked files or directory in git. That’s it, thanks for your reading.