【问题标题】:sqlite3 file add in .gitignore but still in the modified list?sqlite3 文件添加在 .gitignore 但仍在修改列表中?
【发布时间】:2011-08-15 23:20:18
【问题描述】:

我忽略了项目目录和全局 gitignore 配置中的*.sqlite3 文件,但之后每次都会在 git 修改日志中显示 sqlite3 文件。 我该如何解决?

【问题讨论】:

    标签: ruby-on-rails git


    【解决方案1】:

    如果文件已经在 repo 中(即它是版本化的),如果您对其进行更改,它将继续显示为已修改。要让 git start 忽略它们,首先取消版本文件(使用 git rm --cachedgit commit

    【讨论】:

      【解决方案2】:

      如果文件在存储库中,则忽略它将无效。从存储库中删除它,或mark it as unchanged

      【讨论】:

        猜你喜欢
        • 2012-04-02
        • 1970-01-01
        • 1970-01-01
        • 2013-03-18
        • 2016-07-11
        • 1970-01-01
        • 2011-01-06
        • 2018-01-25
        • 2017-11-13
        相关资源
        最近更新 更多