My website's .htaccess was not in git, I have a rule to ignore it:
.htaccess*
Because I have these files
.htaccess
.htaccess.local
.htaccess.online
.htaccess.testsite
So I use * in .gitignore. Besides, sometimes
.htaccess_local.txt
.htaccess_online.txt
...
So, one * can do this.
Now I would like to add .htaccess, but still ignore others. I tried
.htaccess(.)+
It seems not working.