为什么 Git 不添加文件夹?
Why Git don't add folder?
我想在 repo 中添加文件夹 app/static/icon
。
当我做 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.
我的 .gitignore 文件:
**/__pycache__/
**/*.pyc
.idea/
params.py
flask/
app/static/load/
db/
为什么这个文件夹被忽略了?
使用git check-ignore -v app/static/icon
找出答案。
我想在 repo 中添加文件夹 app/static/icon
。
当我做 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.
我的 .gitignore 文件:
**/__pycache__/
**/*.pyc
.idea/
params.py
flask/
app/static/load/
db/
为什么这个文件夹被忽略了?
使用git check-ignore -v app/static/icon
找出答案。