r/ProgrammerHumor • • Oct 21 '22

Meme Dropbox, the new git.

Post image
60.7k Upvotes

1.8k comments sorted by

View all comments

5.7k

u/SlyTrade Oct 21 '22

Clone your repo to Dropbox... redundancy lvl 999π

1.4k

u/kurtms Oct 21 '22

Unironically not a bad idea

1.1k

u/Maskdask Oct 21 '22

I tried this but Dropbox starts fucking around with your files when you switch branches and such.

695

u/noratat Oct 21 '22 edited Oct 21 '22

The key is to use Dropbox as an origin you push to via file:// URL, don't store the repo with the actual working copy in it.

EDIT: I should've included that the Dropbox repo should be initialized with --bare

253

u/worldpotato1 Oct 21 '22

That's actually really smart. Have to try that with my nextcloud.

139

u/Scheincrafter Oct 21 '22 edited Oct 21 '22

I think you would be better of by just hosten a Gitea (or something like that) instance.














An other link

59

u/_unsusceptible ----> 🗑️🗑️🗑️ Oct 21 '22

does the empty code block have a purpose? genuinely asking, I am confused why it's there

29

u/Scheincrafter Oct 21 '22 edited Oct 21 '22

To be a spacer. I am on phone so the formatting I can do has its limitations

34

u/lucidludic Oct 21 '22

Haha. I mean, a new line would have been fine but you can also do 3 underscores on a new line for a horizontal line separator.


Like that one.

→ More replies (18)
→ More replies (5)

31

u/xZero543 Oct 21 '22

GOGS is really good as well.

Disclaimer: I am a contributor, so I might be biased.

21

u/mariansam Oct 21 '22

Gitea is a fork of GOGS, I don't really remember the reason of the forking, I think there was some controversy within the GOGS community

12

u/mrpaco Oct 21 '22

I was curious myself and found the official blog post.

https://blog.gitea.io/2016/12/welcome-to-gitea/

→ More replies (1)

8

u/poedy78 Oct 21 '22 edited Oct 21 '22

Hi Contributor!

A random thank you for your work on GOGS!

→ More replies (2)
→ More replies (6)
→ More replies (3)

42

u/mamaBiskothu Oct 21 '22

Why tho.. just push to GitHub or gitlab ?

→ More replies (27)
→ More replies (17)

100

u/R3D3-1 Oct 21 '22

I'm actually doing this for scripts and configuration I share between my work and home PC, because it would be too annoying to constantly keep them synced over github or something.

When I was using Wuala or Spideroak, their bad scheduling (no priorization of small files like Dropbox does, overall slow sync) and conflict resolution would constantly screw up the repository.

With Dropbox I never have this problem; The small files that are involved in these repositories are usually synced instantly.

Again though, I am talking about configuration and scripts. The kind of "project", where the git repository is really only a linear history of previous states in case I mess something up and want to reset to a working state.

40

u/whyfallwhenyoucanfly Oct 21 '22

I also have to work on 2 machines, my office workstation and then laptop when WFH. On top of that all the code has to run on the office workstation (data and multi-GPU requirements). I find VS code very good for that, I just open an ssh session and edit the code through my laptop but directly on the remote workstation. Maybe it's something that would be useful for you too?

18

u/R3D3-1 Oct 21 '22

For WFH scenarios, I just remote into the remote device, because I anyway cannot store stuff relating to industry partners on my private device.

I am talking more about helper scripts, that have grown over the time of my masters and PhD, that I use locally on both devices (like wrappers around imagemagick for enhancing scans). I need those scripts on both devices, always in the latest version, and don't want to bother doing a pull before using them.

→ More replies (4)
→ More replies (2)

13

u/Fadamaka Oct 21 '22

Why is it more annoying to start every day with git fetch and git pull and end it with git add ., git commit, git push than using drop box? Does dropbox has a cli or how does your local changes sync to drop box?

8

u/R3D3-1 Oct 21 '22

It would be easy, if all of those were a single repository. But even then, you'd actually have to manually do so, while Dropbox just works automatically in the background. There is no "oops, forgot to push at the other PC".

→ More replies (4)
→ More replies (5)
→ More replies (8)
→ More replies (13)

42

u/andrco Oct 21 '22

I did this early on, it's a bad idea. Dropbox messes with the git files, eventually breaking the repo in interesting ways.

→ More replies (7)
→ More replies (12)

114

u/Zatetics Oct 21 '22

my git local repo is in my onedrive folder.

56

u/mkbilli Oct 21 '22

Onedrive doesn't like git at all

97

u/beans_lel Oct 21 '22

It doesn't, but as long as you're only working on it from 1 device it's fine and everyone is happy.

Try working from a second synced device and you've entered Bill Gates' BDSM dungeon and he's horny and all out of lube.

→ More replies (3)
→ More replies (4)
→ More replies (7)

47

u/[deleted] Oct 21 '22

[removed] — view removed comment

102

u/PatHeist Oct 21 '22

You're backing up your data that is stored in three places by Microsoft by having Microsoft store it in three more places?

→ More replies (8)
→ More replies (10)
→ More replies (64)