I used the following ignore pattern, which should, by default, ignore everything on the root level, but then permit specific exceptions. That way I wanted to achieve to not immediately sync everything on the drive I am watching. In addition, I specified some folders I never want to be synced:
/*
!folder
.local/ # folders/subfolders I never want to sync
This what works as expected on github: compare “bier2” in https://github.com/mluerig/gi-test and on my local git repo:
However, this does NOT work in Insync, which will upload the .local folder. Looks like a bug to me?!