Should ipynb checkpoints be stored in Git?

前端 未结 1 1933
日久生厌
日久生厌 2021-01-30 15:46

As the title says: I\'m checking a Jupyter notebook into a GitHub repo, should I store the .ipynb_checkpoints folder in GitHub too, or are they best .gitignor

1条回答
  •  温柔的废话
    2021-01-30 16:13

    The checkpoints are similar files as the original notebooks but are only updated on a manual save. The original notebooks are updated with autosave and when manually saving (thanks @Thomas K).

    The question to you is if you want to share your manual saves with your collaborators. I prefer not to share those because git already provides the functionality to go back to an older version.

    Also, I use https://www.gitignore.io/ to create .gitignore files and according to them the checkpoints are temporary data.

    0 讨论(0)
提交回复
热议问题