點對點的 Git 倉庫網絡:GitTorrent
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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!