git-sync

install

git clone --depth=1 https://github.com/simonthum/git-sync
cd git-sync

usage

git config --bool branch.main.sync true
git-sync