I have added charges.txt
file of 64 MB size in git
repository and did commit
( let git
gave me commit
hash id x ).
Following above commit
, I have also did around 20 more commits to git
repository with different changes in each commit
.
Now I Found that I have added wrong charges.txt
file into git
repository.
I have removed it using git rebase
interactively to my previous commit
id x but I have noticed that the files are removed from my working directory but it's not removed it from .git
directory as the size of .git
folder is almost same before and after my git rebase
.
Please suggest me the right way to remove the file completely from .git
as well to reduce my repository size? Thanks.