9 ms·
GitTorrent: A Decentralized GitHub (2015)
- gcb0 8y agowhat 'knows' the HEAD?
- mwerty 8y agoI’m waiting for gitcoin.
- ENGNR 8y agoIt could be a simple smart contract rather than an entire ICO/coin
- shittyadmin 8y agoFreenet/Zeronet have updatable sites already, should be trivial to do with git commits, grab the latest signed update based on this name and key hash... Overall though I think a federated system that also handles issues is better, something more akin to Fossil.
- gboudrias 8y agoFossil seems like one of many potential upgrades, and it's the second time I hear about it today! However I think the main problem is almost always existing users. Git has arguably been falling behind in terms of features for quite a while now, but its momentum makes it hard for a lot of devs (including me!) to switch to a different vcs.
- confounded 8y ago> Git has arguably been falling behind in terms of features for quite a while now It’s all I’ve ever really used, and I’ve never seriously considered alternatives. What features in other VCSs are interesting?
- gboudrias 8y agoI'm not expert enough to answer that, but Fossil and its "Built-in Web Interface" seems really interesting. I remember Mercurial seemed interesting back in the day, but as far as I can tell it mostly didn't take off because it's too similar to Git. All in all, I'd just like a distributed scm that doesn't feel like it was designed to make Linux with 10,000 other people. It is... frustratingly sophisticated at times.
- chriswarbo 8y agoMercurial is very similar to git, but its CLI is considered to be easier than gits (if potentially less powerful). Another difference is that mercurial heavily discourages editing of history, which some git users seem to like doing. Git is also faster than mercurial. GNU arch was an early DVCS but didn't seem to gain much traction. It was eventually superceded by Bazaar, which is much slower than git but was better at tracking history e.g. across renames. I think git has improved in that area, and bazaar has been getting less popular. Fossil is built on an sqlite database and has a built-in Web UI and issue tracker, which is fine for those who want that but violates the "do one thing" principle (e.g. if you wanted to use some other issue tracker). Darcs keeps track of patches and their dependencies, unlike git and mercurial (which track snapshots and their diffs). This approach supposedly makes life easier, and makes the darcs CLI quite usable. One problem is that some of the merge algorithms can take an exponential amount of time to complete, which has been getting addressed in recent years but many users seem to jump ship to git. Pijul is similar to darcs, but breaks compatibility in order to solve the exponential merge problems. It looks very promising, but is still very new.
- jacobush 8y agoFossil is nice but when you have very large repos (gigabytes) it gets kinda slow. At this point, when git is some kind of lingua franca of SCM, maybe the "best" thing would be if someone cooked up a single executable Fossil clone but with the git command line options and the git protocol.
- carapace 8y agoA possible approach to that is discussed in the article in the section under the heading "Was that actually decentralized?"
- chriswarbo 8y agoThe project's web site or RSS feed? If there's an existing mutable, publically-readable, privately-writable location then it can just be put there. My projects aren't big enough to have their own sites, but I do push my repos to IPFS and give links at http://chriswarbo.net/projects/repos http://chriswarbo.net/projects/repos (actually using IPNS, which should reduce regeneration but is still experimental and flaky ;) )
- cjbprime 8y agoHi! I started this project in 2015, using Bitcoin and BitTorrent -- since then, I think Ethereum and IPFS have become better substrates for this sort of work. And, I think it remains the case that the difficult part of decentralizing GitHub is not working out how to share repositories using p2p bandwidth, but instead working out how to use p2p for the social features of the site, like comments and pull requests. Secure Scuttlebutt has some potential there, but as a gossip protocol it doesn't have a way for people you don't know/follow to e.g. send you a PR.
- marknadal 8y ago@cjbprime excellent work! We've been using a timegraph CRDT with signed inserts to handle non-web of trusted individuals to send or notify a user of something here at gun. I'd love to be able to chat with you more about your work and possible future solutions - shoot me an email (check my profile)?
- cjslep 8y agoGitea, Gogs, and Gitlab all have social-federation-related feature requests open right now. Not sure where they will land, but some are mentioning ActivityPub.
- Promarged 8y agoActivityPub is indeed both simple and extensible. Perfect for issues and comments, also PRs. For the actual code behind PR I would just setup a git daemon and reference own repo. With appropriate CORS the code can even be cloned in a browser.
- rapnie 8y agoCool! That is really interesting. ActivityPub would be great for this. I've added in links to the issues below: Gitea: - https://github.com/go-gitea/gitea/issues/1612 https://github.com/go-gitea/gitea/issues/1612 - https://github.com/go-gitea/gitea/issues/184 https://github.com/go-gitea/gitea/issues/184 Gogs: - https://github.com/gogs/gogs/issues/4437 https://github.com/gogs/gogs/issues/4437 Gitlab: - https://gitlab.com/gitlab-org/gitlab-ce/issues/44486 https://gitlab.com/gitlab-org/gitlab-ce/issues/44486 - https://gitlab.com/gitlab-org/gitlab-ee/issues/4517 https://gitlab.com/gitlab-org/gitlab-ee/issues/4517 edit: added gitlab enterprise link (plus formatting)
- TekMol 8y agoWhat are the features that make GitHub? What if we used only git on the command line? Which features would we miss? Maybe we could add those features with something similar to git, some intelligent scripts?
- Boulth 8y agoPRs and issues. PRs can be distributed using git appraise: https://github.com/google/git-appraise https://github.com/google/git-appraise
- ptman 8y agoAnd there are several distributed issue trackers, all with various problems: https://github.com/dspinellis/git-issue https://github.com/dspinellis/git-issue https://github.com/keredson/distributed-issue-tracker https://github.com/keredson/distributed-issue-tracker https://github.com/duplys/git-issues https://github.com/duplys/git-issues
- chriswarbo 8y agoPersonally I use http://mrzv.org/software/artemis http://mrzv.org/software/artemis extensively and have no complaints.
- Boulth 8y agoFor git or hg? As git support is described as "alpha quality".
- chriswarbo 8y agoFor git; I think that "alpha quality" warning is due to the git support being added by a contributor and the author not actually using git themselves.
- Boulth 8y ago
- greyman 8y agoI would just like to mention, that in my opinion "decentralized GitHub" is an oxymoron, Github's innate feature is being centralized, to centralize developers into one place, being a kind of social network.
- spinningarrow 8y agoBut there are decentralised social networks (e.g. Mastodon). What are your thoughts on those?
- simplyinfinity 8y agoAnd who uses mastodon? I have never heard of a single friend even mention mastodon. ever. Decentralised might be utopia for us, the hackers, the techies... centralised however is for the masses. It's simply easier for them to be where their friends are.
- adyus 8y agoI don't remember where I first read it, but I liked this opinion: in the future, decentralization, even if only adopted by a techie minority, will serve as a threat of what could be, thus keeping the centralized powers in check.
- wslh 8y agoFull technical and governance decentralization is an utopia based on computer science fundamentals. We need to start thinking about the constraints instead of just jumping to the decentralization bandwagon as if was a matter of choice.
- buovjaga 8y agoIf GitLab or any of the other self-hostable services implements ActivityPub, then the "utopia" will be available to all users and instances.
- kowdermeister 8y ago
- Pengwin 8y agoDecentralised Centralised Decentralised Version Control System. What fun.
- atomicnumber1 8y agoI think he's trying to decentralize the centralized part of git. Makes sense?
- lucideer 8y agoThere is no centralised part of git. He's trying to decentralise Git- Hub, which is a centralised website that has many feautres, issues, projects, etc. + acts as a hosted Git remote. Git != Github
- zamalek 8y agoThere is no Hub in the article. The problem with Git decentralization is that you need a publically accessible endpoint (meaning there is an eventual central host). Even when you are using email for patch files, your email becomes the central point of failure (even if you host that yourself). So far as fetch goes, this is why git.kernel.org exists. Git behaves like an mp3-sharing website with multiple mirrors, where-as gittorrent behaves like magnet URLs. This protocol effectively obsolesces the requirement for remotes.
- lucideer 8y ago> There is no Hub in the article. Not sure what you mean by this. The article mentions and compares itself to Github throughout. > The problem with Git decentralization is that you need a publically accessible endpoint (meaning there is an eventual central host). I disagree slightly here. It's completely possible to build a network of remotes that don't all reference a single central origin (e.g. teammates referencing eachothers' local repos over authenticated connections, possible on a LAN, etc.). This gets messy and is hard to administer securely, but Git is more than capable. Also, the challenges of doing this Gittorrent securely with private repos seem similar to those of using SSH remotes between individual dev machines. In terms of the article talking about "hubs" (Github specifically), Gittorrent purports to replace the need for Github, but only fills one of the uses of a hub. A hub like Github serves two purposes: 1. a central origin, i.e. the same use git.kernel.org serves 2. a searchable/discoverable network, e.g. the same use the central thepiratebay.org search engine serves for Torrents. Decentralising this seems like a hard problem.
- dotsh 8y agoI just can't wait for next years buzzwords and useless projects built around them.
- antocv 8y agogit-ssb is better than gittorrent, as bittorrent itself relies on a global DHT, which can and has been censored.
- cbenz 8y agoSome links: git-ssb (Git over Secure-Scuttlebutt): - https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256 https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoy... - https://github.com/noffle/git-ssb-intro https://github.com/noffle/git-ssb-intro Secure Scuttlebutt (https://www.scuttlebutt.nz/ https://www.scuttlebutt.nz/)
- oelmekki 8y agoThanks for sharing. I was discussing trackerless p2p social network with offline publishing and syncing when close to a friend a few months ago, I'm amazed how Scuttlebutt seems to be exactly that. I was thinking of using high frequency sounds (inaudible) for peer discovery when in the same room, like chromecast is doing when phone and chromecast are not on the same local network, but simply scanning network seems to work just as well, apparently.
- tikwidd 8y agoHow can the DHT be censored? Is there any way to prevent it?
- ds887sd78sd 8y agoDHT uses UDP and is not encrypted. Go figure
- vortico 8y agoWhat are the practical downfalls of this? Will my data be lost if the project is not popular enough? Is it possible for peers to modify the repository? Can I use access restrictions? I'm talking about the `gittorrent://81e24205d4bac8496d3e13282c90ead5045f09ea/recursers` URLs, not the GitHub based ones.
- transfire 8y ago> Will my data be lost if the project is not popular enough? I'd like to know how that works out too. I suppose in the end it's up to you to make sure you keep a base copy of your project so it is always available, even if near zero popularity.
- cjbprime 8y agoI can think of a few interesting approaches: 1) We set up something like the Internet Archive, spidering and caching the network, run using donated bandwidth. The hosting could be centralized like the Archive or p2p itself (donated by peers). 2) A system like FileCoin's where you pay a tiny amount of money to ensure other peers will always host your repos on the network. 3) A straight up centralized, for-profit service where you pay a company a monthly fee to host your data on the network, as people already do with GitHub itself.
- fwip 8y agoPlease note that FileCoin doesn't provide any guarantees. It only provides incentives for other people to host your data. It's like paying a centralized service, except you don't have any recourse (legal or financial) if the people hosting it decide to stop.
- cjbprime 8y agoThanks for the correction. I guess you get a probabilistic "guarantee" in that you could see how many peers are serving your content at any given time, and make assumptions about their independence from each other and likelihood that your content will stay available?
- developerdanny 8y agoThis faux outrage at github being acquired by Microsoft is already boring.
- babapapa 8y agoya.. microsoft, the committed mortal enemy of Open Source Software, is now holding the most important hub for Open Source Software.
- jrs95 8y agoWhat year are you living in?
- andai 8y agoTime heals all wounds, but calling Linux and GPL a "cancer", that's pretty harsh.
- toofy 8y agoTo paraphrase what someone else said yesterday: In a world where companies are expected to have growth every quarter, a project like GitHub is one bad quarter away from microsoft making major changes or being abandoned or being completely shutdown. As we’ve seen with product after product, when companies are expected to have growth every quarter, they will sometimes (often?) make radical changes to the software. In the case of GitHub, if microsoft decided it needed far more profit coming in from GitHub, it is entirely reasonable to expect they may decide to shift it into a service which is only usable for their large corporate partners, or they may decide the social features need to go, or they may decide to stop allowing public repos, etc... Microsoft has shown many many times in the past that they’re more than willing to throw out open standards and attempted to force adoption of their own proprietary standards. It is entirely reasonable to be at least a tad skeptical given their history and their business model.
- toofy 8y agoWhy are people upset that others are seeking alternatives? If other people prefer to seek an alternative to GitHub, why is this upsetting to you? Isn’t it a good thing that people can choose to move to other services?
- vhodges 8y agoSSB-Git https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256 https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoy...
- headgasket 8y agoI like the idea. I think it would be an interesting development to counter the centralization in the big5. GitSpoke?
- swsieber 8y agoSo, I think there's a couple relevant issues when talking about decentralizing a github like service. There a couple of things Github provides, and my naive approach to making GitHub less essential would be to address them one by one: * Issue tracking. It's a bit hard to export these. I imagine it'd be a bit nicer to export if issues were actually stored inside git as trees. You could easily make the issues frontend use git as the storage backend. If users don't have an account, maybe they could issue a pull-request to the issue tracker? * Notifications. This ones's a bit harder. Web-hooks? * Merge requests - github uses refs internally (I think). That wouldn't be too hard to standardize. If somebody adds commits to their pull/merge request, then they just have to push the updated ref to the repo they're submitting to. * Auth - this is hardest part. GitHub provides authentication & permissions for pushing. The issue with allowing merge requests submission from anybody (which you could do with a server side hook) is that now people can ddos you by submitting HUGE pull requests constantly. If you could make that safe, in theory you could get away without needing user account federation. * There is also the big security issue that you can't actually use server side hooks for this stuff since libgit2 can be used to bypass it (when pushing using libgit2, it doesn't trigger server side hooks). * Oh, and this entire time I've been thinking about the email & username as being unspoofable. But you can easily spoof them. I guess you need federated user accounts after all. Edit: It's untrusted interactions that's hard to decentralize --------------- All in all, I think that git is easily decentralized if you know you can trust all the actors. It's untrusted git that's harder to decentralize.
- djsumdog 8y agoI mean, the author is decentralizing the basic download and cloning of git. The protocol lets us do that. Git by itself doesn't have issue tracking, wikis, etc. Those are part of Github/lab/bucket. Should the git project seek to add this as part of the repo and protocol itself? Or should we be making new protocols and repositories for this meta-project/code data? I haven't tried Fossil yet, but I understand it has a lot of this stuff built into its protocol/repository format.
- balefrost 8y agoWhen I wanted to read the SQLite source code, I was surprised to learn that the authoritative copy isn't stored in a Git repo, but rather in something called Fossil SCM (https://fossil-scm.org/ https://fossil-scm.org/). It turns out that it's a SCM built on SQLite and created specifically to store the SQLite source code. Interestingly, it has built-in issue tracking and a wiki. I wouldn't necessarily expect people to switch from Git to Fossil. I certainly haven't. But I found it fascinating and figured others might as well.
- ataturk 8y agoWhat we need decentralized is Facebook, Twitter, all the socials.
- apichat 8y agoYou should also look at http://pijul.org http://pijul.org
- repolfx 8y agoA good way to implement this is with the Dat protocol: https://datproject.org/ https://datproject.org/ They already have a competent P2P twitter clone, as an example app. If it can do that it can probably do a github.
- theamk 8y agoI don't think this project should be gittorrent -- after all, one of the reasons bittorrent got so popular is non-distributed tracker and .torrent files, which provide efficiency and authenticity. Maybe git-donkey or git-gnutella instead?
- usaytxxx 8y agoBest blowjob what i ever seen http://clc.la/boOtMA http://clc.la/boOtMA
- miralabs 8y agowhen ico?
- ChankeyPathak 8y agoIn case you're looking for alternatives, this thread might be of some help: https://news.ycombinator.com/item?id=17241487 https://news.ycombinator.com/item?id=17241487