put max limit size in .gitignore code example Example: git ignore more then 10MB find . -size +100M | cat >> .gitignore