💾 Archived View for gemini.locrian.zone › gemlog › augh-git.gmi captured on 2024-05-26 at 14:38:33. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

-=-=-=-=-=-=-

Augh, git

So I thought to myself, I thought, “hey what if instead of using a bunch of hacked-together scripts to update my gemini capsules and website, what if I used git repositories?”

Well, *that* turned out to be a headache. But in the end it worked, and now all I have to do is commit and push when I want to update something. The only tricky bit was this bit I had to add to each repository’s hooks/post-receive:

#!/bin/bash

GIT_WORK_TREE=/path/to/content git checkout -f

That should be the only thing I need to remind Future November of... right? Right???

Tags:

tech