create account

Git Repository in ZeroNet by teego

View this thread on: hive.blogpeakd.comecency.com
· @teego · (edited)
Git Repository in ZeroNet
<html>
<p><img src="http://blog.belzec.net/wp-content/uploads/2016/03/Zero2.png"/></p>
<p><a href="http://bit.ly/27OZwzz">ZeroNet</a>, a serverless P2P network that uses Bitcoin cryptography and BitTorrent technology, may be the first real, usable prototype of a decentralized web.</p>
<p>BitTorrent users can download files directly from other users, without needing a central server. The BitTorrent technology for distributed file storage and peer-to-peer transfers, one of the biggest developments in Internet technology since the Web itself, opens the way to a distributed, fully decentralized Internet.&nbsp;</p>
<h3><strong>Here's an example how to publish a serverless Git repository:&nbsp;</strong></h3>
<p>Note: Only private key owner can push, sign and publish changes. However other users can clone repositories even if internet connection is offline.</p>
<p>Create a new site as described <a href="http://bit.ly/29n3Ih1">here</a></p>
<p>Make a mirror of your existing repository</p>
<pre><code>cd $ZERONET_DIR/data/$SITE_ADDRESS<br>
git clone --mirror $PATH_TO_YOUR_ORIGINAL_REPO</code></pre>
<p>Clone mirrored repository to any other directory</p>
<pre><code>cd $ANYWHERE_YOU_WANT<br>
git clone $ZERONET_DIR/data/$SITE_ADDRESS/$REPO_NAME.git</code></pre>
<p>Set up your post-update hook for "dumb http"</p>
<pre><code>cd $REPO_NAME/hooks<br>
mv post-update.sample post-update</code></pre>
<p>Make any minor change (e.g. add one line to a &gt;&gt;README.md file)</p>
<pre><code>echo "" &gt;&gt;README.md</code></pre>
<p>Commit and push your changes</p>
<pre><code>git commit -a -m "Technical commit"<br>
git push</code></pre>
<p>Sign and publish site changes as described <a href="http://bit.ly/29n3Ih1">here</a>.</p>
<p>Now you can clone your repository from ZeroNet</p>
<pre><code>git clone http://127.0.0.1:43110/$REPO_NAME.git</code></pre>
<h3>Here is a working demo:</h3>
<ul>
  <li><a href="http://bit.ly/29n9cr3">Nemcoin Data Processing Library</a></li>
</ul>
</html>
👍  , , , , , ,
properties (23)
authorteego
permlinkgit-repository-in-zeronet
categoryzeronet
json_metadata{"tags":["zeronet","web","decentralized","torrent","bittorrent"],"links":["http://bit.ly/27OZwzz","http://bit.ly/29n3Ih1","http://bit.ly/29n9cr3"],"image":["http://blog.belzec.net/wp-content/uploads/2016/03/Zero2.png"]}
created2016-07-08 10:33:27
last_update2016-07-09 12:21:18
depth0
children0
last_payout2016-08-09 00:53:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,986
author_reputation1,468,005,650,113
root_title"Git Repository in ZeroNet"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,901
net_rshares1,230,457,852
author_curate_reward""
vote details (7)