Sto tentando di ignorare TUTTI i file tranne il file .htaccess all'interno della directory www.Avere .gitignore per NON ignorare un file .htaccess nella directory di livello superiore
ho questo:
# Ignore everything in this directory
*
# Except this file
!.gitignore
!/www/.htaccess
e ho anche provato questo:
# Ignore everything in this directory
*
# Except this file
!.gitignore
!www/.htaccess
Quando eseguo git status
non vedo .htaccess ad essere un file aggiunto. Ho provato a commettere il file .gitignore. Ancora niente. Mi manca qualcosa di ovvio, no?
Aggiornamento
Ho anche provato questi:
# Ignore everything in this directory
*
*/\.htaccess
# Except these files
!.gitignore
!www/\.htaccess
e
# Ignore everything in this directory
*
*/.htaccess
# Except these files
!.gitignore
!www/.htaccess
provato. commesso .gitignore e ancora non vedendo .htaccess in arrivo – phirschybar