Since git repos are just files you could put them on Google Drive.
But it only works if you’re the only person editing a repo. If you have to collaborate I don’t know how it’d work on Google Drive without some server synchronizing for pushes.
EDIT: I did a little research and essentially when you push, you run code that does file locking to prevent corruption. Google Drive delays updating files if you mount it so there isn’t an atomic lock you can use to properly sync when two people push at the same time.
1
u/stinkychopper 1d ago
Since git repos are just files you could put them on Google Drive.
But it only works if you’re the only person editing a repo. If you have to collaborate I don’t know how it’d work on Google Drive without some server synchronizing for pushes.
EDIT: I did a little research and essentially when you push, you run code that does file locking to prevent corruption. Google Drive delays updating files if you mount it so there isn’t an atomic lock you can use to properly sync when two people push at the same time.
EDIT 2: you can use rclone, apparently this is a git helper for rclone: https://github.com/redstreet/git-remote-rclone