更新项目后git add .时遇到如下提示,无法提交
The following paths are ignored by one of your .gitignore files:
data
Use -f if you really want to add them.
检查.gitignore后发现data已经添加进去了
最后发现自己的目录是/project/myproject/data,在这里git add .只会检查data目录和data子目录下的改动,需要返回到/project/myproject目录执行。