0

I am trying to remove a folder called "GIS" containing large data files from my git history. I pushed this folder a couple of commits ago so an --amend won't work. Here's the command I'm trying:

git filter-branch --tree-filter 'git rm -r --cached -- GIS/**' HEAD

This throws an error:

fatal: bad revision 'rm'

Why does this error occur? How can I delete this folder from my git history?

user32882
  • 5,094
  • 5
  • 43
  • 82

0 Answers0