I accidentally committed a zip
of the whole solution 4 commits ago. I realized this after I tried to push and git bash showed I was uploading something larger than 100mb.
So far I've tried to:
- Delete the file locally and commit that change (this still leaves the huge
packfile
which still seems to be causing a problem when pushing) - Used
git revert -n c5d1516c
(which is the specific commit that includes the zip. I figured I would then add.zip
to thegitignore
then commit that and hope the 600mbpack
file would resolve itself but this is not working either)
I've tried a few other approaches but I'm not the best at git so I'm at a loss of direction
Here is my commit history. The highlighted one is the one that contains the zip file that I need to remove and also remove from git history.
How can I undo the highlighted commit so that I can ignore the zip file and fix my pack file issue?