首先抱歉愚蠢的头衔。 :)
问题很简单...... .gitignore
无视我!
情景:
I needed to add application/bootstrap.php
to ignore-list. That file ignores me (still visible).
Then, I thought that I need to make some changes in those files. Guess what? Nothing!
Maybe I have something wrong in .gitignore
? Lets add a newline to it. :D
Okay, .gitignore
! Not funny... anymore. If I'll remove this, will that make them visible? No!
为什么会这样,我怎样才能隐身application/bootstrap.php
和index.php
?
感谢adivce并抱歉不那么无聊的书面问题。 :d
答案 0 :(得分:4)
我认为问题是application/bootstrap.php
是您的存储库的一部分。 .gitignore
通常用于忽略不部分存储库的文件。
正如gitignore手册页所说:
要忽略已跟踪的文件中未提交的更改,请使用
git update-index --assume-unchanged
。