Hidden files don't sync even after enabling

I have some hidden files which I want to sync using Nextcloud. I marked “Sync hidden files” in Settings → “Edit ignored Files” however the hidden files still are not synced. Is there any way to obtain this? What is the point of “Sync hidden files” checkbox if it doesn’t enable it?

What files do you enable. I think there were a few ignored by default from the server (e.g. .htaccess)

I enabled all hidden files but still those associated with Git are not synced (.gitignore, .git)