The notebook format contains the cell output and also some many information. Two by text deals with this problem by basically giving you paired notebooks. And then what you can do is if you want to version, your notebook is just checking that clean or stripped PY file or Markdown file rather than an IP and B.