git clone
, git pull
, git push
) repositories through different doms (VMs), so that users can have an infra-tools vault VM with git bares to serve as remote.https://codeberg.org/brunoschroeder/qubes-git-syncer
At this point, all we have:
To sync a git repo from dom0 to vm:
git bundle create $DOM0DIRPATH/$FILENAME --all
sudo qvm-move-to-vm $VM_NAME $DOM0DIRPATH/$FILENAME
To sync a git repo to dom0:
sudo qvm-run --pass $VM_NAME 'cd ${VMPATH} && git bundle create - --all ' > $DOM0DIRPATH/$FILENAME