1

My .gitignore file is as follows:

.ipynb_checkpoints
*/.ipynb_checkpoints/*

But when I do git status, I still get checkpoints being tracked.

C:\python_git\python3>git status
On branch main
Your branch is up to date with 'origin/main'.

    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git restore <file>..." to discard changes in working directory)
            modified:   Lists/.ipynb_checkpoints/List Basic Operations-checkpoint.ipynb
            modified:   Lists/List Basic Operations.ipynb
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            .gitignore
    
    no changes added to commit (use "git add" and/or "git commit -a")
phd
  • 82,685
  • 13
  • 120
  • 165
smackenzie
  • 2,880
  • 7
  • 46
  • 99

0 Answers0