A way to statically host your git repos in ipfs. For now, these are read only.
git clone https://github.com/whyrusleeping/git-ipfs-rehost
cd git-ipfs-rehost
cp git-ipfs-rehost /usr/local/bin/git-ipfs-rehost
It's as easy as:
git-ipfs-rehost http://github.com/user/repo
Publishing a repository to IPNS makes it possible to continue to update the same mirror, with new commits. This allows the creation of uncensorable and updatable git
mirrors.
First generate a keypair, which will be the identity of the IPNS name.
ipfs key gen --type=rsa --size=2048 youtube-dl
Then run this script as such:
./git-ipfs-rehost https://github.com/l1ving/youtube-dl.git --key youtube-dl