Back to blog

Show HN

Show HN: Packvcs – serverless Git remote on Google Drive/any rclone remote

Read on the publisher site

Hi HN,

I made packvcs, which lets you use Google Drive (or any other rclone remote) as a git remote, without hosting anything yourself.

If you try to use git directly with rclone, even just cloning a repo from GitHub doesn't work - Git creates a lot of small files that struggle to sync with a cloud drive.

packvcs solves the problem by 'packing' each upload into just a few files. It integrates into git as a "remote helper", so it is compatible with git commands like normal. For example, this is how to create a repo:

packvcs init rclone://gdrive:repos/project packvcs setup-remote origin rclone://gdrive:repos/project git push -u origin main

---

When designing, the hardest part was the behavior of Google Drive, because it has huge lag between uploading and displaying the files, and it also allows duplicate paths for some reason. So extra care was needed, and in fact my design ended up being like "never modify any file on the remote, just create new ones and delete old ones".

Large files get split into chunks as well, so it's builtin LFS support.

I have started using it for my own repos, but it's pretty slow compared to a normal git host though (~12s for push, 4s for fetch), so... mostly a fun project I guess!

Choose your language

Elige tu idioma

You can change this anytime from the language menu.

Puedes cambiarlo cuando quieras desde el menú de idioma.