Answer the question
In order to leave comments, you need to log in
How to delete a file from history and shrink the repository size?
Good afternoon.
I started cleaning the repository, once for transferring between machines, video files were added to the turnip.
found that to remove a file from the history, I can run the command
git filter-branch --index-filter 'git rm --cached --ignore-unmatch ' and the file will be completely removed from the history.
did, when viewing changes (I watch gitk) there are no more mentions of files, BUT ..... the size of the .git directory remained the same, 27 MB ... That is, the file remained as it was in the turnip ( it is 25 MB).
Hence the questions:
1. - how to really compress the turnip
2. - how to send these changes to the server?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question