Auto Publish Git Repos
Today, to both see if it could be done and to make dealing with all my source code easier, I setup a set of git repositories that automatically publish to IPFS when a “git push origin” is run.
First, I setup the file structure to keep things organized.
./publish ./public/ ./public/ipfs-auto-repo.git ./public/ipfs-scanner.git # et cetera To initialize the repo being published, I did the following.
git init cd public/ipfs-auto-repo.git git init --bare vim hooks/post-update This was then entered into post-update: