I'm using nbstripout to remove Jupyter output before committing. nbstripout generated a .gitattribute
file that looks like this:
*.ipynb filter=nbstripout
*.ipynb diff=ipynb
This works as expected, whenever I git status
, git diff
, or git commit
, it doesn't include Jupyter outputs. However, when I remove the second line, it does the same thing.
What does *.ipynb diff=ipynb
do in this case?