Reduce size of .git Folder

Reduce size of .git Folder

Reference

Remove Git Log of Unwanted Files

e.g. images; videos

git filter-branch --force --tree-filter 'rm -f path/to/big_file.mpg' HEAD
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push --force origin master
Show Comments