I have a bash script that I need to run on multiple (personal) machines, using systemd timers. While largely similar, there is some functionality in these scripts that I need enabled on some machines, but not on others.
Right now, I'm using git branches to manage the scripts and timers. This seems to be convenient and working fine, but I'm wondering if it's a recommended practice.
While unlikely, I do see a potential source of problems (human introduced error): checking out the wrong branch on a machine.
My questions:
Is this enough of a concern to avoid using git?
Are there other potential problems I may have not considered?
Is this method recommended for managing scripts and timers on multiple machines? Or am I better off (a) rewriting the scripts to make them more portable and configurable, (b) just having machine specific files, without git branches, (c) something else?