I am maintaining a project that was done in typescript. All the files - .ts (good!), .js(bad!), .map(bad!) - were put in git. Putting the .js and .map in gitignore only tells me they are being ignored but are still tracked in git (and they are shown when I attempt to make a commit). How do I get the .js and .map either out of git, or some way to have them not tracked by git? Should I delete them from my project - and if so, will the .ts recreate them?
I saw one or two support postings about this, but they were quite old.