【问题标题】:Git commit shows changed files like metadata although they are in gitignore fileGit commit 显示已更改的文件,如元数据,尽管它们位于 gitignore 文件中
【发布时间】:2019-04-23 12:14:31
【问题描述】:

GitHub 上有关提交的信息表明,即使元数据在 gitignore 文件中,但元数据等文件中仍有数千个添加和删除。 这就是我的 gitignore 文件的样子:

.元数据

bin/

tmp/

*.tmp

*.bak

*.swp

*~.nib

local.properties

.settings/

.加载路径

.推荐

.springBeans

【问题讨论】:

标签: eclipse git github


【解决方案1】:

您可能在 .gitignore 已经被 git 跟踪后添加了某些文件。如果是这种情况,您需要告诉 git 取消跟踪文件:

git rm --cached <file>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-02
    • 2016-02-16
    • 2010-11-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多