Don't forget to replace angle brackets <...> with actual values
- Create a bare git repo (this would be the local shared remote)
git init --bare <repo-name>
cd <repo-name>- Add your keybase git repos as remotes of your bare repo
git remote add keybase-prv keybase://private/<username>/<repo-name>
git remote add keybase-pub keybase://public/<username>/<repo-name>- Add the git hook to auto update your remotes on push to the bare repo
mkdir -p hooks
curl -L https://gist.github.com/miraclx/00f063ea3b499d55f57cef3873bf6040/raw/post-update -o hooks/post-update
chmod +x hooks/post-update- Add your bare repo as a remote to your project
cd <project-dir>
git remote add keybase <absolute-path-to-bare-repo>- Push to your bare repo (this should, in turn, forward that push to keybase)
git push keybase --all
# or be specific with branches
git push keybase master develop