Skip to content

Instantly share code, notes, and snippets.

@ohjho
Last active October 16, 2023 18:49
Show Gist options
  • Save ohjho/1ae8b70729d64de608f597fbc79e6aae to your computer and use it in GitHub Desktop.
Save ohjho/1ae8b70729d64de608f597fbc79e6aae to your computer and use it in GitHub Desktop.
How to remove .ipynb_checkpoints from Git Repo
# to remove the file on git without deleting from local
# use -> git rm --cached
find . -name .ipynb_checkpoints -print0 | xargs -0 git rm -r --ignore-unmatch
echo .ipynb_checkpoints >> .gitignore
@Apidwalin
Copy link

to remove the file on git without deleting from local

use -> git rm --cached

find . -name .ipynb_checkpoints -print0 | xargs -0 git rm -r --ignore-unmatch
echo .ipynb_checkpoints >> .gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment