I have a .gitignore file like this:
# no binaries
*/
!*.go/
!.gitignore
I thought */ means to ignore all files in all subdirectories (so every file), !*.go/ means to not-ignore all *.go files in all subdirectories, and !.gitignore means to not ignore .gitignore.
However, the issue I have now is that when I create a new *.go file in a subdirectory, it's now ignored.
How do I correctly gitignore all compiled binaries, but not ignore *.go files?
I now have
**/*
!**/*.go
!.gitignore
But it still ignores all *.go files in the ch1 directory. Anyone else have ideas?