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.
@rschutjens I am not sure to understand what you mean but it seems it is a bit different from what you expect:
add... commit... push
{bash} makes a commit with the version without outputs.So when you checkout, you never get the outputs.
Welcome to notebooks and git, hope you enjoy it!