-2

I accidentally tried to upload a zip folder I made, essentially doubling the media I was trying to push and this happened. I've tried searching on commands how to fix this and can't seem to find one.

I've tried that YouTube video that says git push -A I've tried git ' lfs track "*.ext" ' And a couple others I can't recallenter image description here

Thanks!

jdeo
  • 21
  • 3
  • Does this answer your question? [How to remove big (>100MB) file from a GitHub repository and push successfully?](https://stackoverflow.com/questions/37767720/how-to-remove-big-100mb-file-from-a-github-repository-and-push-successfully) – Mikel Rychliski Apr 07 '20 at 17:29
  • Does this answer your question? [How to remove/delete a large file from commit history in Git repository?](https://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository) – phd Apr 07 '20 at 17:45
  • https://stackoverflow.com/search?q=%5Bgit%5D+remove+large+file – phd Apr 07 '20 at 17:45

1 Answers1

0

You can undo your previous commit. From the linked answer:

$ git commit -m "Something terribly misguided"             # (1)
$ git reset HEAD~                                          # (2)
<< edit files as necessary >>                              # (3)
$ git add ...                                              # (4)
$ git commit -c ORIG_HEAD                                  # (5)
OSH
  • 741
  • 4
  • 11