scrub notebook outputs as a git pre-commit hook
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
pre-commit

README.md

Scrubbing IPython Notebook outputs

As a git pre-commit hook.

The goal is to avoid committing outputs to your git repo, if that kind of thing is annoying to you.

To use:

Add pre-commit from this repo as .git/hooks/pre-commit in your repo, and any time you commit a notebook, all outputs will be scrubbed prior to the commit (behaves the same as the "clear all output" button in the notebook UI).