git add报错"The following paths ar

2022-04-25  本文已影响0人  TalkTalk战术

更新项目后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目录执行。

上一篇下一篇

猜你喜欢

热点阅读