So I recently did the silly thing of doing
git add -A
in my working directory which added some large data files (> 1 GB) that I didn't want to add. Stupidly enough, I committed, and when trying to push to Github, Github complained that I didn't have enough space and hence could not push (completely reasonable). Given I was in the middle of some code, I pushed on with my project, making a few more commits on top of the original commit that had the large data files. So now, I'm stuck with 4 local commits that can not be pushed, because I have those large data files in the first commit. Is there any clean way to resolve this without changing anything in my current working directory (I've added a lot of changes to code since the first commit with the large files).
Thanks!