Last active
October 5, 2018 08:34
-
-
Save kcchien/582cbb1a29669926ea3b30d906590176 to your computer and use it in GitHub Desktop.
.gitignore 排除大於100MB以上的檔案
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -size +100M | cat >> .gitignore | |
find . -size +1G | sed 's|^\./||g' | cat >> .gitignore; awk '!NF || !seen[$0]++' .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment