Posts on tag: android
Table of contents
Managing hugo with git and ssh on android
So I wanted to be able to maintain my hugo site on my phone, just in case. It works but it was kinda annoying to setup.
You’ll need to install the apps Termux and Acode from Fdroid.
Then start Termux and execute termux-setup-storage
and allow access to shared folders.
Next, install git: pkg install git
.
Use your favourite file manager and create a working directory somewhere. I use Downloads/git
. Then symlink to this dir in Termux:
ln -s /storage/emulated/0/git .
Now, generate a new SSH key pair:
ssh-keygen -t ed25519
Install the public key to your repository. I am using Gitolite, so I added it to the keydir in the gitolite-admin dir.
That’s basically it. Clone your repo, open the folder with Acode, edit or add files and commit and push them to your git repo.
I’ll not describe, how to setup gitolite and the hugo repo, maybe in a follow-up post.