i have 2 local (say A and B) and one remote repository. unfortunately i added a huge folder into A and pushed it. as i wanted to pull it into a third local repository C (my laptop), it was not feasible any more. then i wanted to undo the adding of the huge folder in A and tried a git filter-branch
' command which terminated with error as the disc quota was exceeded. now, when i run du -h
in A, it shows several ./.git-rewrite
files, even if i checkout a commit before the addition of the huge file.
now - is there any way to undo the git filter-branch
command? (my suspicion is that there is some alteration in the git history and i don't want to risk any damage) because then i would use Delete commits from a branch in Git to get rid of the folder and force the remote to forget it, too. as B is several commits behind, i would only use it as last option.