I'm not sure what I am doing wrong in this case with my .gitignore file, but these files continue to be displayed.
Background
I use Jekyll to create a blog. Jekyll generates directories _siteand .sass-cachewhen it starts to serve.
I previously used these directories before realizing that I want to ignore them.
To be overly careful, I added all of the following lines to mine .gitignore:
/_site/
_site/
_site
/.sass-cache/
.sass-cache/
.sass-cache
Since I knew that I had used these files before, I:
- File updated
.gitignore. - done
git rm -r --cached . - deleted folders
_siteand.sass-cache - ran a
git add .and git statusshowed that the working directory was clean
Problem
, .gitignore ( ?), , , bundle exec jekyll serve, jekyll , .sass-cache _site .
.gitignore .