1

1. I add this in my .gitignore:

temp/cache/
!temp/cache/.htaccess

But it still skip (dont commit) everything in cache dir including .htaccess.

How fix it?

2. Is ok that I commit my .gitignore on github?

4

1 回答 1

0

是的,您确实提交并将您的 .gitignore 推送到您的 github。它只是忽略您对这些文件所做的任何更改。

例如

.gitignore 文件

*~   
/application/config/config.ini

这将忽略对 config.ini 所做的任何更改

于 2012-08-02T11:47:05.537 回答