Git still shows files as unplayable, despite .gitignore and rm -r --cached. What have I done wrong?

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:

##Jekyll
/_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 ?
  • , git ?

.gitignore .

+4
1

.gitignore UTF-16LE. UTF-8 .

:

  • .gitignore , Notepad ++
  • ( np ++, Encoding) UTF-8
  • .
  • .gitignore
  • git commit -m "fixed ignore file"

.

+7

All Articles