Git-lfs tracking unwanted files

So I’m working on a hugo site and netlify stopped building. Looking at the build log I can see that there was an issue with the config file. Long story short, my config files, yml files, toml files, html, css etc etc etc were all added to git lfs.

After uninstalling git lfs and resetting back to a known good deploy branch, I checked and double checked but git lfs is still trying to add almost every file in my repo to lfs.

My .gitattributes is 4 lines

*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text

my site is affectionate-kepler-19cdfe.netlify.app

Hi, @_Rob. I don’t see any sites with the subdomain affectionate-kepler-19cdfe at this time (on any account).

If this is a questions about getting Git to stop tracking files with Git LFS, there is a StackOverflow post with the answer here:

​Please let us know if there are any other questions about this.