I have a largish (32k commits) git repository in which I need to rewrite history in one branch to remove a bunch of large files as described by a .gitattributes file. This branch is entirely local and has never hit a remote (in fact our remote is rejecting it because of the large files in history).
I know that the following command will go through the history of the branch and remove all .dll
files:
$ git lfs migrate import --include='*.dll'
but since the .gitattributes file exists and is rather extensive, is there a command that simply replays the work that would have been done to pointer-ize those files, if the .gitattributes file had existed back when the branch was created?