If your Gemini capsule is version-controlled using 'git', these few steps will allow you to use 'git' to also publish your changes made locally onto your server.
mkdir ~/repo && cd ~/repo mkdir gemini.git && cd gemini.git git init --bare
cd ~/repo/gemini.git/hooks wget -O post-receive https://codeberg.org/etienne/gemini/raw/branch/main/post-receive-template chmod +x post-receive
Once downloaded, update 'post-receive':
From your project root folder, on your machine:
git remote add gemini username@your.server.ip.address:~/repo/gemini.git
You're all done. You can now publish your content via 'git' by running:
git push gemini master