I'm really new to using git, and made the mistake to also push my (big) data file (on big .RData file) to my online repository on gitlab. Now my maximum size limit is reached and I can't do any more pushes. So I would like to remove the data file. I found git's filter-branch
command. However the problem is: In the very early commits the file was called datafile_early.RData
, then after a few commits that file got deleted and replaced by datafile_later.RData
(I'm also working with others on that repository).
So how do I purge the datafile_early.RData
from the history? I tried:
git filter-branch -f --tree-filter 'rm datafile_early.RData'
, it started removing it from the first commits but failed beacuase of the later commits it could not find the file anymore.
Rewrite a9c05c45dd0c2dacb7ba79cf829fb76a3fb70da3 (4/22) (22 seconds passed, remaining 99 predicted) rm: datafile_early.RData: No such file or directory
tree filter failed: rm datafile_early.RData
What other options do I have?