Enabling cross-posting to a personal Git repo in order to help power a digital garden.
Use [[wikilinks]] double brackets in your Mastodon or Twitter posts, which then get "siphoned" into the Git repo which stores your digital garden notes in [[Markdown]] format.
I am looking for something that allows me to publish from micropub to a git repo.
It would be nice to post via micropub straight in to my wiki repository.
I guess I have two ways of doing it:
Things that are already built:
[[termux]]. ssh. git.
I need to install a couple of packages.
pkg install openssl-tool
pkg install openssh
Set up your ssh key. I use passphrases.
To have gitlab.com in your git config be recognised by ssh, and to use the particular key for gitlab:
Host gitlab.com
HostName gitlab.com
User git
Port 22
IdentityFile ~/.ssh/gitlab
To make sure you don’t have to keep entering it:
Host *
AddKeysToAgent yes
And at the start of new Termux session:
# if bash
eval $(ssh-agent)
# if fish
eval (ssh-agent -c | sed 's/setenv/set -x/g')
ssh-add