I currently have something like:
javascripts/
plugin.js
plugin.min.js
stylesheets/
style.css
style.min.css
How would I get
just having this in the gitignore should work
*.min.*
You have several solutions, depending of what you really need.
Ignore all minified files in your project :
*.min.*
Ignore all minified files in a folder :
assets/*.min.*
Ignore only JS/CSS minified files in your project :
*.min.js
*.min.css
I believe you have to git rm filename --cached
to remove the files from your git repo if you added it to .gitignore afterwards. (note: this will remove it from the repo, not from directory)