How to Delete and Ignore All .ipynb_checkpoints in GitHub Repositories

1 · Hongtao Hao · March 5, 2022, 6:47 p.m.
The procedure is very similar to delete .DS_Store File . You can delete .ipynb_checkpoints folder this way: find . -name .ipynb_checkpoints -print0 | xargs -0 git rm -rf --ignore-unmatch git add . git commit -m "Remove .ipynb_checkpoints from everywhere" git push Then you can ignore all future .ipynb_checkpoints this way: touch .gitignore echo \.ipynb_checkpoints >> .gitignore git add . git commit -m "Creating .gitignore and ignore .ipynb_checkpoints" git push...