I accidentally committed several very large PDF files that were well above the size limit of GitHub, so when I later clicked, I got an error and could not click. Now I want to remove these files from the commit, without losing them locally, in order to subsequently add .pdf to .gitignore and commit and push other changes. Does anyone know how I can do this?
I do not want to undo any changes or risk doing so.
source share