TNguyen
TNguyen

Reputation: 1051

*.min.* in gitignore is not ignoring .min.js files

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
*.orig
*.min.*

these are the first few lines of my git ignore files and I can't seem to figure out why git is not igoring any of my .min.js files. I've already checked other questions on here but can't seem to figure out why still. Also, the min.js files are being re-generated every time I compile. Am I doing something wrong here? Also using Git-Extensions if that helps at all.

Upvotes: 1

Views: 1558

Answers (1)

René Höhle
René Höhle

Reputation: 27325

*.min.*

is the correct syntax but that is not working if the files are added once to your repo. Then you have to remove them first from your repo to ignore that files.

git rm --cached filename

Git ignoring all minified suffixed files

Upvotes: 5

Related Questions