How to say to .gitignore: 'Ay, work!'?
Sorry for stupid title, first. :)
Problem is very simple... .gitignore
ignores me!
Scenario:
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. :DOkay,
.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
.
精彩评论