Created
March 9, 2020 13:53
-
-
Save mvidaldp/d443e28b5153ee966151d78f88ee7fcc to your computer and use it in GitHub Desktop.
Automatically find and ignore large files on GitHub
This file contains hidden or 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
#!/bin/bash | |
# change data/ for your folder name or . for current | |
# change +50M for the file size you want to ignore | |
find data/ -size +50M | cat >> .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment