I currently have something like:
javascripts/ plugin.js plugin.min.js stylesheets/ style.css style.min.css
How can I make all .gitignore ignore all mini files ( .min )? Would something like **/*.min.* Work?
.gitignore
.min
**/*.min.*
You have several solutions, depending on what you really need.
Ignore all mini files in the project:
*.min.*
Ignore all mini files in the folder:
assets/*.min.*
Ignore only mini JS / CSS files in your project:
*.min.js *.min.css
just having this in gitignore should work
I believe you need git rm filename --cached delete files from your git repository if after that you add it to .gitignore. (note: this will remove it from the repo, not from the directory)
git rm filename --cached
Source: https://habr.com/ru/post/975693/More articles:Does the Rails `with_lock` block read? - ruby-on-railsSaving image from URL in Parse.com using CloudCode - javascriptMVC Route to Action for Javascript File - asp.net-mvcPassing GCC to a * not * libgomp link, so it binds libiomp5 instead of - gccLinking static libraries to clang regardless of order - c ++Expires header for Facebook JS SDK and Google Analytics - facebookWhat makes a Visual Studio 2013 Project a katana project? - asp.netDefinitely lost memory leak in program C - cConfigure IIS authentication from another domain - asp.netToo many templates, how can I reduce the number of POJO developers? - javaAll Articles