I have a git repo with many files and folder but I want to ignore everything except files and folders in a src folder.
This is my .gitignore:
/*
!**/src/
!.gitignore
!README.md
But this is what git status returns:
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
README.md
nothing added to commit but untracked files present (use "git add" to track)
So it seems that it is ignoring everything including my src folders.