Public & Private Obsidian Notes with Github & iCloud

All my Obsidian notes (including this one) is available on my public second-brain Github repo via backing up with Obsidian Git plugin. By the way I also have private notes that I want to be synced throughout my devices. I added some rules to exclude files with .gitignore all files and folders with .priv prefix will be for my eyes only. Then sync it with iCloud which works with my iPad flawlessly. (No solid solution for Android devices but I don’t bother doing that, yet.)