Search code examples
gitgitignore

Why Git don't add folder?


I want to add folder app/static/icon in repo.

When i make git add app/static/icon, Git return:

The following paths are ignored by one of your .gitignore files:
app/static/icon
Use -f if you really want to add them.

My .gitignore file:

**/__pycache__/
**/*.pyc
.idea/

params.py

flask/

app/static/load/
db/

Why this folder ignored?


Solution

  • Use git check-ignore -v app/static/icon to find out.