I see a number of posts online about syncing via git and github, but in doing it via this manner (including using the helper files in Charles Chiu’s git repository) all of your data is being committed in Git and pushed to your Github repo online unencrypted.
Here is one of the few messages I’ve seen that deals with this, from the Obsidian community
Please don’t push your data unencrypted unless you have a very clear understanding of what that implies.