Reputation: 1739
I haven't previously committed this folder.
Upvotes: 0
Views: 36
Reputation: 35017
Because your .gitignore is in the code folder.
.gitignore
code
Move .gitgnore to the top folder of your repository.
.gitgnore
Upvotes: 4