0

A few commits ago, I added a large image to a git repo. A few commits later I delete the image and used git add -A.

Is there a way to make git think as if that large file never existed?

Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
  • 1
    Have you seen [this post](http://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository)? – Jepessen Apr 19 '14 at 07:54

1 Answers1

0

You have to rewrite history from the commit where you added the big file. There are countless possibilities, including git filter-branch or git rebase or even git cherry-pick with some manual branch manipulation.

Some related answers:

Community
  • 1
  • 1
SzG
  • 12,333
  • 4
  • 28
  • 41