# Add and Apply .gitignore --------------------- 1. Create a file named `.gitignore` in directory where your `.git` directory exists. 2. Run these commands: - `git rm -r --cached .` - `git add .` - `git commit -m ".gitignore is now working"` ---------------------- [download this page as .md](https://raw.githubusercontent.com/retrokid/retrokid.github.io/master/tech_notes/add-apply-gitignore.md)