Remove a large file from previous git commit / GitHub E.g. when accidentally committing a large file to a git repo and GitHub refises the commit. git filter-branch --tree-filter 'rm -f path/to/large/file' HEAD Afterwards, simply try to push to GitHub again...