Where do you host that remote repo? How do you push/pull from mobile?
There is an app on Android at least called "pass" that allows you to do this.
The Android pass app is developed and distributed by the same person who maintains the Android wireguard app iirc, otherwise I probably wouldn't have trusted it!
Device B -> git pull from remote repo
¯\_(ツ)_/¯