after trying a few different ways i've settled on chezmoi which they also mention on their utilites page. it supports quite a lot of things that many other solutions miss like templates so that you can use the same repo across different operating systems and being able to run scripts just once, in order and so on.
It's somewhat involved to set up but now across windows/linux/macos my entire setup is literally just a one-liner.