I ignore all files except for some folders as shown below in the .gitignore file.
*
!.gitignore
!/sample1/test1/
!sample1/test1/*
My issue is , it only keeps track of files under test1 folder which already exist , when i make new file, it ignores to track it.
may i know any solution ?