Investigate the following two options: - Clear all outputs, save notebook, then commit. - [Jupytext](https://github.com/mwouts/jupytext)