Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Created March 9, 2020 13:53
Show Gist options
  • Save mvidaldp/d443e28b5153ee966151d78f88ee7fcc to your computer and use it in GitHub Desktop.
Save mvidaldp/d443e28b5153ee966151d78f88ee7fcc to your computer and use it in GitHub Desktop.
Automatically find and ignore large files on GitHub
#!/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