Live data from Hacker News

Gitea – Alternative to GitLab and GitHub

gitea.io

71–80 of 124 posts

Re: Gitea – Alternative to GitLab and GitHub

#71
I have always seen GitHub as the social Git. Of course I use Gitea for personal & private projects, but if you want visibility and gain from network effect, GitHub is where you needed to be.

With this MS acquisition, that proposition is starting to become a problem and an uncool dependancy on MS.

Re: Gitea – Alternative to GitLab and GitHub

#72
post #51

Somewhat related, I've been thinking of how to speed up git on hosts with limited resources. As an example, the firefox repo has a 275MB index file which has to be loaded whenever you want to read the repository. On a host with 1GB of ram this doesn't work so well. I think that storing repositories in loose format would make them much faster to read, but maybe I'm missing something. Any thoughts?

The index is just a cache of the metadata of files in the working directory; changing how the objects in the repo are stored won't speed up a 'git status'.

When you say 'read the repo', it makes me think you're more interested in the behaviour of cloning from a remote.

Loose objects would avoid the need to inspect packfiles, but… that code's all written in C and mmaps the contents & does fast seeks. Most likely the slow parts are reconstituting objects from packs (also mmapped C with fast seeks) or delta-compressing objects for git-upload-pack to send to clients. Going to loose objects doesn't help if the remote still burns CPU creating a pack: try using a dumb remote instead of a smart one? You're trading CPU for network now.

If you're more interested in improving performance in a clone: loose objects avoids the need to (fast mmapped C) read a packfile. The index still has to track if you've changed any checked-out file in the working directory, and if there are a lot of files, it's going to be big.

Re: Gitea – Alternative to GitLab and GitHub

#74

Earlier quoted context omitted.

For which they need a number of central servers. These server do not do anything with the content, but they serve to announce to any new client what other clients are there, so that these new clients can start setting up their network. Once that's done, the new clients can discover the other nodes through the nodes they just connected to, and the servers have done their job. But the servers are necessary, as far as I…

You are mistaken. DHT is decentralized. https://en.wikipedia.org/wiki/Distributed_hash_table

The bootstrap problem isn’t generally solved though - a new client needs to know a set of other clients to connect to, same with a client that’s been turned off for a while and whose cached set of other clients aren’t online. This is solved by an always-on set of clients that these clients are statically configured with.

In theory, yes, if they go down, you could configure your client to point at another well-known client, though.

Re: Gitea – Alternative to GitLab and GitHub

#75
I wonder whether the user-friendly features of sites/services like GitHub might eventually be displaced by feature-rich git clients like Tower[0].

There are still plenty of things you might want centralized on a server somewhere, but it seems like a lot of the value add of GitHub, GitLab, and now Gitea is in making git repos easier to manage and interact with.

It's interesting to think about how far you could decentralize that, ideally with a "cambrian explosion"[1] of OSS and indie-software clients.

[0]: https://www.git-tower.com/

[1]: https://en.wikipedia.org/wiki/Cambrian_explosion

Re: Gitea – Alternative to GitLab and GitHub

#77
post #65
post #53

Earlier quoted context omitted.

I agree, additionally git has a built in server for sharing repos over the network. What I'd personally like to see is a repo viewer similar to Github but implemented purely in JavaScript and cloning repos in the fly just like the native git does. Git.js ( https://github.com/yonran/git.js ) has something like that but it looks old and ugly.

What is this built in server git has? I thought sharing git repos over a network was depending on OpenSSH or similar.

git-daemon i assume. https://git-scm.com/docs/git-daemon

Re: Gitea – Alternative to GitLab and GitHub

#78
post #65
post #53

Earlier quoted context omitted.

I agree, additionally git has a built in server for sharing repos over the network. What I'd personally like to see is a repo viewer similar to Github but implemented purely in JavaScript and cloning repos in the fly just like the native git does. Git.js ( https://github.com/yonran/git.js ) has something like that but it looks old and ugly.

What is this built in server git has? I thought sharing git repos over a network was depending on OpenSSH or similar.

probably thinking about git-daemon (for git:// urls)
Post reply on HN