Gitignore Issue

less than 1 minute read

Description

Git Was not ignoring __pycache__ even though I had it set in .gitignore

To Resolve:

  1. Originally read this which didn’t seem to help.

  2. Then I ran the following per this article and it worked:

    1
    2
    3
    
    git rm -r --cached .
    git add .
    git commit -m ".gitignore Fixed"
    

Comments