This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.
To use the script, follow the instructions given in the script's docstring.
For further details, read this blogpost.
The procedure outlined here is inspired by this answer on Stack Overflow.
Is it correct that this does not restore the output if you checkout an earlier versions of the notebook? That would be what I want, only the latest commit would have full ipynb in git (and after I push it to github).
I am new to notebooks, git, and github so sorry if this might be an obvious answer.