Q:

Why do _site files still sometimes show for commiting?

This is the top of my .gitignore
### Jekyll ###
_site/
.sass-cache/
.jekyll-metadata
It seems properly setup but I still get _site/ files showing in my GitKraken...
EDIT: here's the repo in question, thanks: https://github.com/BradCoffield/APIs-for-librarians

A:

Your .gitignore file looks good. You might have added files in the '_site' folder before adding the .gitignore file. If you see the '_site' folder in your respository, then that is most likely the case. Just delete the '_site' folder from your repository and you should be good.
You can easily achieve this without actually deleting the folder using:
 git rm --cached _site

followed by a commit. 

