怎么说.gitignore:'在,工作!'?

时间:2011-08-27 11:02:47

标签: git github gitignore

首先抱歉愚蠢的头衔。 :)

问题很简单...... .gitignore无视我!

情景:

  1. I needed to add application/bootstrap.php to ignore-list. That file ignores me (still visible).

  2. Then, I thought that I need to make some changes in those files. Guess what? Nothing!

  3. Maybe I have something wrong in .gitignore? Lets add a newline to it. :D

  4. Okay, .gitignore! Not funny... anymore. If I'll remove this, will that make them visible? No!

  5. 为什么会这样,我怎样才能隐身application/bootstrap.phpindex.php

    感谢adivce并抱歉不那么无聊的书面问题。 :d

1 个答案:

答案 0 :(得分:4)

我认为问题是application/bootstrap.php是您的存储库的一部分。 .gitignore通常用于忽略部分存储库的文件。

正如gitignore手册页所说:

  

要忽略已跟踪的文件中未提交的更改,请使用   git update-index --assume-unchanged