GitTorrent —— 去中心化的 Github 网络

GitTorrent 是一个点对点的 Git 仓库网络,基于 BitTorrent 进行分享。

GitTorrent 包含 5 个组件:

  • 一个 git 传输助手,知道如何去下载和上传 git 对象,可用于 git 本身执行 fetch/clone/push 操作
  • 一个分布式哈希表来告知节点提供的 git 服务
  • BitTorrent 协议扩展负责发送打包文件到对方
  • 一个 key/value 存储基于分布式哈希表,作为用户配置,描述一个用户的仓库以及最新的 git 哈希
  • 用于在 Bitcoin 的 blockchian 中注册友好用户名的方法

开始使用

npm install gittorrent

克隆仓库

git clone gittorrent://github.com/someuser/somerepo

提供 Git 服务

touch somerepo/.git/git-daemon-export-ok
gittorrentd

文章转载自 开源中国社区 [http://www.oschina.net]

你可能感兴趣的:(GitTorrent —— 去中心化的 Github 网络)