r/ProgrammerHumor • • Oct 21 '22

Meme Dropbox, the new git.

Post image
60.7k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

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.

11

u/Scheincrafter Oct 21 '22

At least for me the horizontal line doesn't render in the reddit android app

12

u/[deleted] Oct 21 '22

You could, alternatively, leave lines with just # at the beginning and they'll be spaced

Like this.

Edit: Fun fact, that's also how you post an empty comment, if you ever have such a need:

→ More replies (6)

5

u/max_adam Oct 21 '22

In a unofficial Reddit Android app I can see the line. Reddit should allow it in their app.

→ More replies (2)

3

u/bob_in_the_west Oct 21 '22

Two enters will give you a blank line.

3

u/pslessard Oct 21 '22

Just do two newlines

Like this

→ More replies (3)

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/

10

u/xZero543 Oct 21 '22

Oh, wow. Didn't knew that.

Gitea in comparison looks even better. Might even consider migrating!

8

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

Hi Contributor!

A random thank you for your work on GOGS!

3

u/DinoChrono Oct 21 '22

I used GOGS for a few time in my past. Thanks for being a contributor!

I need to checkout how the project is going after these 4 years, btw

→ More replies (1)
→ More replies (6)

0

u/[deleted] Oct 21 '22

[deleted]

→ More replies (1)
→ More replies (1)

42

u/mamaBiskothu Oct 21 '22

Why tho.. just push to GitHub or gitlab ?

→ More replies (27)

5

u/Slightly_Zen Oct 21 '22

Could you elaborate on this method please?

27

u/TryingT0Wr1t3 Oct 21 '22 edited Oct 22 '22

I think they mean something like:

cd /my/dbox/dir/

git init --bare

cd /my/working/clone

git remote add local_dbox file://my/dbox/dir

git push local_dbox

But haven't tested it

Edit: added the bare parameter above.

13

u/alexbarrett Oct 21 '22

You should use git init --bare in the Dropbox folder. Bare repositories have no working tree for editing, but still support git operations that don't need a working tree.

→ More replies (1)
→ More replies (3)
→ More replies (9)