From github: Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like or GitHub Enterprise.

If you have extremely large files that you have to manage within a git repository, this is the way github wants you to do it.

Install GIT large file support:

brew install git-lfs

Then browse to your repository directory and run

git lfs install

You’ll see the message “Git LFS initialized.”

Find your top 10 largest files with

find ~/Documents/path/to/repo -type f -exec du -h {} + | sort -rh | head -n 10

Then add the types that make sense, e.g.

git lfs track '*.mp4'

(git lfs track to see a list of all tracked paths, files, and types)