Skip to content

Instantly share code, notes, and snippets.

@chris-rock
Created May 13, 2014 08:53
Show Gist options
  • Save chris-rock/b25cebe1c56d2623b479 to your computer and use it in GitHub Desktop.
Save chris-rock/b25cebe1c56d2623b479 to your computer and use it in GitHub Desktop.
Filter empty git commits
git filter-branch --commit-filter 'git_commit_non_empty_tree "$@"' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment