I committed hundreds of files within a core folder accidentally during my last git commit.
I do not want to lose these files, but I don't want them in my repo. How do I undo the last git commit whilst also retaining the files?
This is a local build, prior to git pushing, so I don't care about history being lost and I would prefer to do this in the simplest possible way, i.e. if I can avoid making new branches or detaching from head, etc. then that would be preferred.