I have a repository of several kB (text). During my work, I had several temporary large files in the same folder, which I forgot to delete.
My last five commits are "aware" of those temporary files. I have already deleted the files manually, and I want GIT to "forget" the last five commits and to create a new one (i.e. I don't want to have the .git folder 1000x bigger because of remembering that useles file).
And most importantly, I don't want GIT to rewrite any of my files (I am afraid that GIT will restore all my files to a state five commits ago).
I am not very good at the GIT terminology. Do you know how can I do it?
P. S. I am not trying to prune specific files from the index. I want to make Git "forget" commits, as if I did not do them at all. There is no server and I do not share my work with anyone.