.git/config contains
[filter "remove-notebook-output"]
clean = "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR"
.git/info/attributes contains
*.ipynb filter=remove-notebook-output