Is there a way to put the settings under git?

I try to keep all my settings under git. Is there a clean way to do this with BTT? Which files are important? I know BTT can export profiles, but I'm looking for a backup solution that I can automate via bash scripts.