美文网首页
git add报错"The following paths ar

git add报错"The following paths ar

作者: TalkTalk战术 | 来源:发表于2022-04-25 20:31 被阅读0次

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

    相关文章

      网友评论

          本文标题:git add报错"The following paths ar

          本文链接:https://www.haomeiwen.com/subject/cyrqyrtx.html