We work with VS and VSTS for the most part.
Git: someone screwed our repo by deleting .gitignore and committing almost 2000 files meant to be ignored and bloated it by 250MB. We already cleaned it up (had to do cmd git commands), but doing a fresh git clone on this repo still downloads the extra 2000 files, before the deltas kick in and deletes those files.
Assuming that creating an entirely fresh new repo is not an option (business reasons), what would be the best way to make it so that a fresh git clone would not download the ignored 2000 files?
Some branches still have those 2000 uncleaned files, but not the master branch. We haven't deleted those branches yet for archiving purposes.