but this is really weird i was just typing base on what I read here Gitignore Docs
this my weirdest solution:
#ignore everything
*
#except
!.gitignore
!directory**/**
actually this really works!, everything subfolders to what i really want is being seen using git status
NOTE: I have not seen this in the docs or I was blinded by confusion and didnt see it in the docs
Is there anyone who can let me understand why this works? I really want to learn git.
EDIT : same solution to this one by lanzz:
#ignore everything
*
#except
!demo
!demo/**
EDIT Thanks, David