我有一个需要在我的.gitignore文件中编辑的文件。.gitignore中的Github和非忽略文件
我编辑.gitignore,提交它,仍然我的文件无法提交。
我删除了文件,读取了它,并且一旦它具有相同的名称,它仍然无法提交。
我试过了-f,然后在文件库中添加了一个空白版本的文件。最糟糕的是,如果我部署了,那么在这一点上它会破坏我的整个应用程序。
更新:
文件我想补充的是:
public/javascripts/ckeditor/config.js
我的.gitignore文件说:
Git的状态表明这一点:
# On branch testing
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: public/javascripts/ckcustom.js
#
no changes added to commit (use "git add" and/or "git commit -a")
ckcustom.js是由其他更改生成的ckeditor套件的编译文件。但我不能只编辑该文件,我不得不编辑它的内部工作。
显示我们的.gitignore文件,你想提交文件的名称。 'git status'在'git add'前后会给你什么? – ehsanul 2010-07-08 19:26:16