Like perhaps many newbies to Raspberry Pi, I'm experimenting with the various OS options and how to customize the OS to my preferences. Every time I copy an OS to one of my Micro SD cards, I perform a few tasks manually:
- Perform GUI and CLI updates
- Disable Bluetooth
- Enable VNC
- Copy my public SSH key
- Install Vim
- Change background to solid color
- Reduce GUI resolution
- Remove unneeded folders and files from
~.
So far I've done the above about a dozen times. I'd like to not repeat myself anymore. But I'd also like to take advantage of git branching so I can experiment. VS Code is available for Raspberry Pi but unsupported. I'd like to create a git branch of the boot drive, install VS Code, see if it's stable enough for my needs. If not, take advantage of git and revert to the main branch, start from that point again.
In case it's relevant, I know a bit of Linux, but that's mostly because I use macOS as my main machine and am familiar with its command line, as well as having used Linux for web services.
What would be the best way to integrate version control with Raspberry Pi starter images?