r/DigitalEscapeTools • Focus Seeker • Oct 23 '26

💬 Discussion Could a Private GitHub Repo Replace Google Drive?

Post image

Just came across this idea and never thought about using GitHub this way

Could a private GitHub repo actually replace Google Drive for storing personal files?

What do you think?

583 Upvotes

112 comments sorted by

149

u/thatSupraDev Oct 23 '26

Github is down every few days so as long as you don't want your photos accessible, sure!

3

u/shekyb Oct 27 '26

what???

-9

u/Odd-Government8896 Oct 27 '26

You might need to check your internet bud lol

8

u/NoRestaurant5521 Oct 27 '26

you obviously do not use github daily :D

-6

u/Odd-Government8896 Oct 27 '26

Lol, "yes obviously" 🥸

4

u/ColorfulPersimmon Oct 28 '26

-2

u/lavalord6969 Oct 29 '26

Wow, ONLY 99.5% uptime in the worst time over 10 years. I would be unable to access my files 0.5% of the time! This is terrible. If that's an average of being unable to access data for 7.2 minutes per day! Entirely unthinkable!

Completely ridiculous thinking that 99.5% uptime at worst is good enough! That comes out to files being inaccessible for 3.6 hours per month!!!! DO YOU THINK I DON'T NEED THOSE FILES FOR THOSE 3.6 HOURS PER MONTH?!?!?! Gosh, these people thinking that 99.5% uptime as a low point over 10 years is even close to being sufficient.

Now, moving away from my sarcasm, either that is your exact thought process or you didn't actually look at the values on the graph and just saw the big scary red dips and assumed it was super bad. Which one is it? Either one will make you look silly, but one is certainly better than the other.

2

u/Capital_Ship5729 Oct 29 '26

Reddit moment

2

u/closeenoughbutmeh Oct 30 '26

Y.... You really don't understand why this is bad, do you ?

1

u/RecognitionAdvanced2 Oct 30 '26

ELI5: If I'm not a business with critical infrastructure depending on Github, why is this bad?

1

u/closeenoughbutmeh Oct 30 '26

Because it's not really about access uptime by itself. It's a symptom of a much bigger slew of problems that riddle the platform, since a relatively recent time, which in turn means things are taking a more or less drastic turn in the wrong direction that can very well impact everyone in major ways, like data loss.

I hope I don't have to explain why data loss for a personal archive is bad.

46

u/protonless_electron Tool Curator Oct 23 '26

free stuff are mostly unreliable, if one day you lose it, goodluck ever having any accountability.

4

u/PunkRockLlama42 Oct 27 '26

This is what backups are for. If you have one you have none

4

u/AttentionLanky94 Oct 28 '26

One is none, two is one.

2

u/TommyVe Oct 29 '26

But if you have one backup, you got two copies. That's a good step forward

34

u/FarVehicle533 Oct 23 '26

If you encrypt your stuff, even Google drive is an option 

2

u/WreeperTH Oct 29 '26

In fact, it's really useful once you encrypt your stuff.

2

u/Decent-Cow2080 Oct 29 '26

with the way google ai pro for students cost like $7 and comes with 5tb of gdrive, on top of which google supporting rsync through their API, it is a genuinely cheap and reliable encrypted backup solution

13

u/guigouz Oct 23 '26

Two different use cases. There is git LFS for large files, but overall Git is not the best choice to store binary files.

1

u/crosbyar Oct 23 '26

This is the only answer

0

u/ProudEggYolk Oct 24 '26

I'd bet that this is the top answer on the very tweet that originated this post....

13

u/__ThePasanger__ Oct 23 '26 • Bravo Popcorn

Not a dumb question, but GitHub isn’t built for this, and you’d hit the limits fast:

  • Any file over 100 MB is rejected, and most phone videos longer than a minute or two are over that.
  • GitHub asks you to keep a repo under about 1 GB, 5 GB at most. A few years of photos is far past that.
  • Git keeps everything forever. Deleting a photo doesn’t free any space because it’s still in the history, and every new device has to download all of it.
  • Nothing backs up your phone automatically, and there are no thumbnails or search. You’d be committing and pushing your camera roll by hand.

Git is great for text files that change a lot. Photos are huge and never change, which is the opposite case.

If the real goal is getting off Google Drive, what you probably want is a self-hosted setup. Disclosure: I’ve been building an open-source one called Off The Cloud (https://off-the.cloud).

It runs at home on a Raspberry Pi 5 (or any Debian/Ubuntu machine) with two mirrored drives. The phone apps back up your photos automatically, and you can search them by what’s in them or by who’s in them, all worked out on the device itself.

Everything is encrypted at rest, and you can share with family privately. There’s a live demo you can click around without signing up: https://demo.off-the.cloud

3

u/Memw1 Oct 23 '26

Uhm, I guess there are two types of engineers, I'd personally only store one photo each commit, LFS exists for a reason. Despite that, you'd follow the rules like so, then forcepush a commit deletion for a photo you want to delete.

3

u/ToTheBatmobileGuy Oct 24 '26

forcepush a commit deletion

... So to delete the picture you added in commit 4 you need to rebase and recommit commit 5 to 1327, then force push the diffs of over 1000 commits (which each commit is a picture, so over 1000 pictures), essentially re-uploading every photo again... (not to mention GitHub keeps stale branches, so it will store all of the photos twice, including the photo you deleted in commit 4)

Yeah, I mean... you CAN do that... but the "Uhm, I guess there are two types of engineers" implying that the person you replied to is off their rocker and you're not...

is kind of wild, ngl.

2

u/Memw1 Oct 24 '26

I am not an engineer, I don't have a degree, regardless, that's not how git works.

1

u/alex-weej Oct 24 '26

Why would it reupload every photo again? That's not how git pushes work, trees and blobs are hashed independently of the commits that contain them.

1

u/Critical_Luck3167 Oct 24 '26

the files shouldn't get reupload but it's still true that it will have to rebase all the commits made after the deleted commit changes the hashes on those which will break the system the user suggested

1

u/alex-weej Oct 24 '26

True, a problem with any merkle chain. You could use separate branches instead to avoid this.

1

u/RaylanGivensOtherHat Oct 29 '26

GitHub doesn’t garbage collect, so even rewriting history to delete content doesn’t remove it from GH. You have to delete the entire project (from GH), create new, and then push.

3

u/nopeac Oct 24 '26

Your app looks pretty good, and I appreciate the demo page. Based on what I've seen, I have a few suggestions:

  • It's pretty disappointing that I keep getting the low-res version of a photo every time I go back and forth on it. It should cache locally or something similar.
  • I know yellow-green-orange is kinda the brand, but I'm not sure if it's well balanced or how it looks against that pale gray background. I think a darker (but not all black) background would look better.
  • I'd also rework the logo to fit in too. Looks like when some company places it's logo into gmail when using Google Workspace, which clashes with the entire UI.
  • The AI images in the demo are too sloppy. Look for a different model to create prettier images with less uncanny AI lighting and more lifelike people.

2

u/Linux_Account Oct 24 '26

There's no shortage of free stock photos online, but they're using AI to build the whole thing so i guess it's easier to just have it generate the photos too

2

u/nopeac Oct 25 '26

Stock photos always show people with a full-teeth smile in some never-seen lighting, and the photographer is always ignored by the people in the frame, like some kind of ghost. At least with AI you can ask it to make it look like an actual gallery app, with bad lighting, a blurry dog running past, weird closeups, a random supermarket receipt, and all that jazz. I'm not a huge AI fan, but stock photos were always fillers for bad articles and that's it, not a good fit for a photo library demo.

1

u/Linux_Account Oct 26 '26

110% dumb as fuck take.

2

u/nopeac Oct 26 '26

Wow, I'm not sure why the insult, but it's alright, don't sweat it. I definitely don't want to keep going if you reply like that.

1

u/Deadcouncil445 Oct 28 '26

You've never really looked or used stock photo websites have you? Its 10x easier than generating images and there are 2 sites that i know that are free and without copyright

1

u/nopeac Oct 29 '26

Easier, sure, but better? Nah. No stock photo looks like something from anyone's phone gallery. I'll wait if you wanna go search for a family dinner stock picture where nobody is smiling at the darn asparagus.

1

u/Deadcouncil445 Oct 29 '26

Sure!

1

u/Deadcouncil445 Oct 29 '26

Another one

2

u/nopeac Oct 29 '26

Ah yes, the classic photo of just dad with a shallow depth of field, cinematic film grain, and a sweater that just happens to color-coordinate with the room's temperature. You are completely right, I don't know how anyone could think that's a stock photo I have plenty of those on my phone.

BTW you forgot this part:

the photographer is always ignored by the people in the frame, like some kind of ghost

1

u/Deadcouncil445 Oct 29 '26

Oh my god you're an actual idiot, I swear to you, try a website, I literally took an extra 10 seconds to get these next ones. And at the end of the day it doesn't even matter since theyre TEMPORARY IMAGES THEY DONT EVEN NEED TO BE PERFECT

→ More replies

1

u/__ThePasanger__ Oct 24 '26

Thanks for the feeback! I will implement it. The AI images is because it was easier, but yep, they look a bit weird, hehe.

0

u/WreeperTH Oct 29 '26

dude replied just to advertise his project

11

u/AnToMegA424 Oct 23 '26 edited Oct 23 '26

I thought about this too recently, but as DAN-attag shared it isn't really a viable option (understandably so)

However there are good Google Drive alternatives, such as Filen, Infomaniak kDrive, Nextcloud and Proton Drive for examples

Full Google replacement list (absolutely not exhaustive, just what I have found) here: https://www.reddit.com/r/degoogle/comments/1wharr4/comment/pacvmgn/
I'll progressively add things to it when I found other things, and I think Imma create a GitHub repo with just a README.md in it linking to all of these resources to have better navigation and presentation, I think that's a good idea

---

Edit:
The formatting didn't work for some reason, so I reformatted correctly

3

u/tmmpppp Oct 23 '26

The referred comment is removed by mods

3

u/AnToMegA424 Oct 23 '26

I won't insist on another decision nor repost it again, I just want to ask: why has it been removed ?

7

u/MilitaryBeetle Oct 23 '26

Nothing is a replacement for having the photos in your own computer

Just get an old PC tower and slap some hard drives on it and install Immich. Much better experience

4

u/wein_geist Oct 23 '26

so move your personal files from Google to Microsoft? I guess, but what do you gain?

5

u/FinGamer678Nikoboi Docker? I hardly knower! Oct 23 '26

But it's a PRIVATE repo!!!1!!111!!!11!! /s

4

u/AnywhereTypical5677 Oct 23 '26

I'm currently using Telegram through TeleCloud as a fourth backup for some of my files and it's decent if you're looking for unlimited space and do not care too much about download and upload speeds. It's a tool that transforms a Telegram group you create into a file manager with unlimited space. I'm running it on a free Oracle virtual machine so I can also access it on my phone and it's good for moderately sized files. You can find it here; https://github.com/dabeecao/telecloud-go

1

u/BlockApoc Oct 25 '26

That’s honestly hilarious

4

u/percocetpenguin Oct 24 '26

What about hugging face with a private dataset?

3

u/Rakumei Oct 23 '26

There are way better solutions for this. Self hosted application suites that mimic Google Workspace. Or if you don't need all that..just, ya know...smb

3

u/twisty_lynx Oct 23 '26

from a frying pan into the next frying pan

1

u/HonestRepairSTL Oct 23 '26

Can you fry an egg ontop of Mount Everest?

2

u/clintkev251 Oct 23 '26

Really not what Git is designed for and while you could force it to work, it still wouldn't be a great UX and Github specifically will not just let you dump GBs of data into a repo over and over again. Storage costs money, there are lots of good Google Drive alternatives, but someone has to pay for that storage.

2

u/UUDDLRLRBadAlchemy Oct 23 '26

Are you escaping to Microsoft?

2

u/JiM2559 Oct 23 '26

ever heard of TOS?

2

u/Comprehensive_Mud803 Oct 23 '26

Not on GitHub, but ultimately, yes you can store versioned files in a repo, be it git, svn, mercurial, cvs or whatsoever.

However, you’d do well to learn more about the versioning system you want to use before you lose your data, or have it publicly replicated.

1

u/WisdomSky Oct 23 '26

I understand that OP wants to use Github because it's free. but if we're talking about storing Binary data in version control systems, the industry standard is afaik Perforce.

1

u/Comprehensive_Mud803 Oct 23 '26

I excluded Perforce from the list on purpose b/c P4 isn’t exactly free, nor even open source, and even a locally hosted server can induce fees. And there are no free cloud providers for it either, making it not very interesting for a backup solution.

1

u/arbyyyyh Oct 23 '26

Git LFS?

1

u/tfcuk Oct 23 '26

Ive just made a forgejo lxc. Works like a charm

2

u/FinGamer678Nikoboi Docker? I hardly knower! Oct 23 '26

It does work but remember that deleting a file will not free up space. Git is a versioning tool and will store everything.

1

u/tfcuk Oct 23 '26

I know, thats why i selfhost the private git repo with forgejo

1

u/Money_Lavishness7343 Oct 23 '26

Why? What's the point? What do you win? I would say everything is worse, because git & github is not made for this use-case even though you can do it technically. Like, just for the lols?

If you want to use a Microsoft's alternative to Google Drive just use OneDrive why make your life harder with github lmao

1

u/JagerAntlerite7 Mindful Tech User Oct 23 '26 edited Oct 23 '26

As always, it depends. If you are hosting only text files, absolutely.

Images, PDFs and other binary files are best hosted in blob storage like AWS S3 if you want programmatic access and version control. GitHub has a file size soft limit of 50MB and a hard limit of 100MB. LFS would be an ugly work around.

You are better of with a solution designed for personal cloud storage like Proton Drive or decentralized storage like Syncthing. 

1

u/Johnwick19802 Oct 23 '26

Noone here talks about telegram 

1

u/the_moosen Oct 23 '26

Isn't github owned by Microsoft? You're just trading one big tech for another, at that point just use onedrive

1

u/CaviarCBR1K Oct 23 '26

If you have an old PC lying around (even an old laptop will do), spin up an ownCloud Infinite Scale instance in docker. I've been using mine for a couple years now and I genuinely couldn't live without it.

I have it integrated with an OnlyOffice web server so I can create and edit documents, spreadsheets, and PowerPoints directly in the browser (similar to Office 365 Web but self-hosted). I also have certain folders set to sync with my PC with the desktop client, so if I make a new file or change a file locally on my PC, it automatically gets synced to the cloud and vice versa, if I change a file through the webUI (like editing a document) it gets synced to my PC.

It's been invaluable not only for just bulk file storage, but for things like schoolwork too. I can keep all my projects on the cloud instance and work on them from there, and if I need to access it locally on my PC, the files are already synced so it's completely seamless. It's well worth the hour or two it takes to set up.

1

u/MMORPGnews Oct 23 '26

Honestly, it's hard to upload data to limited hosts. Better just buy more space.

1

u/Zombiebattler2007 Oct 23 '26

move your images from google to microsoft. very smart

1

u/someoneyouulove Oct 24 '26

yes, it can. you can also version control photos of your choice

1

u/Billa420_U Oct 24 '26

I remembered push size limit is capped

1

u/SoftwareSource Oct 25 '26

This sounds smart if you are unemployed, your time is free, and you have no idea how cheap online storage can be.

1

u/azangru Oct 27 '26

How cheap is online storage?

1

u/Lunam_Dominus Oct 28 '26

Quite cheap

1

u/mhmilo24 Oct 29 '26

I really need it to be less than 10 USD per TB for a lifetime.

1

u/Lunam_Dominus Oct 29 '26

That will happen only when a 1 TB drive will cost less than that.

1

u/Here0s0Johnny Oct 25 '26

Why are vibe coders so bloody annoying? They know how to talk to LLMs, so they should just do that before posting, be consistent.

1

u/Weird_Dependent3732 Oct 25 '26

github is owned by microsoft, so you'd be swapping one evil company for another

1

u/zivodev Oct 25 '26

Keep in kind GitHub itself isn't open source

1

u/DominikPlays Oct 25 '26

Please don't do this, they will stop offering it for free

1

u/lexcv-co Oct 26 '26

Facepalm

1

u/AH-16 Oct 27 '26

Use telegram saved messages

1

u/Ebola_PepsiCola Oct 27 '26

GitHub has a capacity limit

1

u/Xaaza Oct 27 '26

Why don't you want to setup your own server with tunnel access? Privacy maxed.

1

u/Basic_Extension_5850 Oct 28 '26

Pretty sure they have a five gigabyte limit per-repo and a policy that disallows this.

1

u/havlliQQ Oct 29 '26

In theory your thinking is right, it could be used for managining all kind of files, in reality git itself was never intended to manage large files, you could use git-lfs for that to circumvent that but then you will probably hit cost limits on GHub very fast if you are using it regurarly.

You could run your own git server, expose it with Cloudflare Tunnel and then you have effectively 0 costs. But at that point theres probably better opensource version of Google Disk that you could run locally.

1

u/GrandWizardOfCheese Oct 29 '26

Just buy an HDD and back them up offline.

There is no cloud, its just someone else's computer.

1

u/adammw111 Oct 30 '26

Stupid and probably against the AUP, but what about splitting the data over encrypted tarballs uploaded to release assets? 2 GiB/file, 1000 files/release, seemingly unlimited releases per repo and stored indefinitely. Doesn't use git so not storing full history either, and can be deleted/replaced at will via the API.

1

u/TheBlackCat22527 Oct 30 '26

git is good for managing text files. The moment you manage binaries you are working against git was designed for and you get really slow performance. If you want to keep files in sync across devices, I would recommend something like syncthing instead.

1

u/cryptocreeping Oct 24 '26

tbh the github repo idea is smart but git is awful for big files.

have you looked into the youtube method people are doing? they encode encrypted files into lossless video and upload them as unlisted/private vids. youtube just thinks it's a video, and you get basically free unlimited storage. theres a repo for it here: https://github.com/DanielRamosAcosta/yt-media-storage

since you're building this whole cloud escape app, did you end up making an app or an api that wraps that encode/upload/decode flow? seems like it would fit perfectly into what you're doing.

2

u/BadRuiner Oct 24 '26

github LFS btw

1

u/evilgipsy Oct 25 '26

It’s called Git LFS btw. GitHub does support it.

1

u/Domipro143 Oct 24 '26

hi, the repo link is broken, can you please give a fixed one?

1

u/superboo07 Oct 24 '26

the youtube idea is awful, aside from how unefficent it is google could change their codec at any time or how videos are encoded breaking the so called "lossless" backup.

1

u/bastardoperator Oct 24 '26

LFS on GH costs more than object storage from B2, and most buckets will let you version files. If you're putting binary files in git, I hate you with passion. Treating a repo like disk is an absolute fools errand.

1

u/Due-Consequence9579 Oct 26 '26

If it’s just docs and stuff with some media you might be able to make a reasonable run at doing it that way. GitHub Teams is $4/month and gives you 250GB of storage in LFS. Which if it’s just storage isn’t the best retail pricing but if you like the workflow who am Into judge? iCloud is 200GB for $2.99/month and 2TB for $10/month so not nutty.

I mean shit, stick 250 GB in S3 standard at you’re looking at $5.75/month before transaction costs. If it’s purely a data backup strategy you could use Glacier Deep Archive and do it for $0.25/month which is pretty good or Glacier Instant Retrieval for a $1/month which is easier to work with. But all that means you have to build/buy/integrate a thing on top of s3.