【发布时间】:2014-03-08 04:08:43
【问题描述】:
这里的解决方案:Why does git say a sub project is dirty if I do not have any sub-modules in my repository?
所以我正在关注 Michael Hartl 的 Rails 教程。当我意识到我的应用程序无法在 Heroku 上运行时,我大约读了五章。我回头看了一下,我意识到我的整个 config/initializers 文件夹不在我的仓库中,如您在此处看到的:https://github.com/ksin/sample_app/tree/master/config
显然,该文件夹存在于我的工作区中。
$git status #=> 显示没有要提交的内容。
当我在初始化程序中更改文件并运行 $git status 时,config/initializers 显示为修改后的内容。但是,我根本无法进行更改。 (如我将运行$git add .,但当我之后运行$git status 时,未暂存的文件仍然存在。)
我不确定是什么问题,因为我以前从未遇到过这种情况。
在搜索了更多之后,我也做了:
$git submodule #=> No submodule mapping found in .gitmodules for path 'config/initializers'
这意味着什么?
【问题讨论】:
标签: ruby-on-rails git heroku github