开发者

How to say to .gitignore: 'Ay, work!'?

Sorry for stupid title, first. :)

Problem is very simple... .gitignore ignores me!

Scenario:

  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 th开发者_如何学运维em visible? No!

Why is that so and how can I make invisible application/bootstrap.php and index.php?

Thanks in adivce and sorry for not-so-very-boring-written-question. :D


The problem I believe is that application/bootstrap.php is a part of your repository. .gitignore is typically used to ignore files which are not part of your repository.

As the gitignore man page says:

To ignore uncommitted changes in a file that is already tracked, use git update-index --assume-unchanged.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜