Well all my files are tracked (and need to be tracked) by git. These are machine-generated javascript files (There is a node package called Handlebars.js - which creates these machine-generated JS files - which by definition look highly unreadable , like minified javascript).
I want to ignore (human ignore, as opposed to git-ignore) the machine-generated stuff - in other words, these files which have the extension “.tpl.js” very much need to be there (because I cannot regenerate them at the time of deployment to the webserver (inconvenience of various kinds) - they’re almost like binary files, like a minified JavaScript file).
To put it another simpler way : Lets say I have a JS library (code that I wrote), and when deploying to the server, only the minified version needs to be deployed. In this scenario, the minified file is never browsed/reviewed for code changes on the development machine, but circumstances dictate that it be physically present in the repo (or else when deploying the rep on the web server it wont get copied over).