dlab-berkeley/Computational-Social-Science-Training-Program

add .ipynb_checkpoints to .gitignore?

EastBayEv opened this issue · 3 comments

add .ipynb_checkpoints to .gitignore?

@EastBayEv I tried doing this but I don't think it worked. Could you take a look and let me know if you can see something I did wrong? Link to file

@Akesari12 Make sure you delete the .ipynb checkpoint files locally and then do a add/commit/push up to the remote and then git pull. What you have done already will only work for that specific (sub)directory that the .gitignore is in, but doing a global ignore is better to ignore all .ipynb_checkpoint files anywhere in the repo - at once.

Try answers 2 or 3 here, otherwise I am happy to jump in: https://stackoverflow.com/questions/35916658/how-to-git-ignore-ipython-notebook-checkpoints-anywhere-in-repository

adding **/*.ipynb_checkpoints/ to a single .gitignore file in the main directory should work.

If you are already tracking them, try the first answer in the link above to first untrack them and ignore them.

Thanks @EastBayEv , this worked I think! Closing the issue now, will reopen if the checkpoints sneak back in.