gitignore file

To ignore all files larger than 100MB: find ./* -size +100M | cat >> .gitignore To ignore all files larger than 100MB but with pathnames not contianing “data” and without repeating already added large file names: find ./*work*/ -not -path **data** -size +100M | sed 's|^\./||g' | cat >> .gitignore; awk '!NF || !seen[$0]++' .gitignore An Example .gitignore file with other useful settings: GNU nano 2.9.3 .gitignore # Blocklist files/folders in same directory as the ....

 January 23, 2023  •   1 min  •   156 words  •   Suyog Garg