Configure git to track only one file extension

Read this question.

You want:

# Blacklist everything
*
# Whitelist all directories
!*/
# Whitelist the file you're interested in. 
!*.cocci 

Note, this’ll track only *.cocci files. Yours doesn’t work because you ignore everything (that’s the first line), which ignores all subdirectories.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)