308
you are viewing a single comment's thread
view the rest of the comments
[-] MajinBlayze@lemmy.world 15 points 2 days ago* (last edited 2 days ago)

I have a project with a bunch of compose files that define the services I self host. I "deploy" the project by sshing into my server and doing "git pull" which means I'm often making changes that don't get tested before committing to source control. As a result I have long chains of commits like:

  • refactor the sproingy widget
  • refactor the sproingy widget v2
  • refactor the sproingy widget working
  • maybe the sproingy widget works this time?
  • ok finally found the issue with refactor sproingy widget
  • fix formatting of sproingy widget

And now I'm wondering if I've been an llm this whole time

[-] yabbadabaddon@lemmy.zip 2 points 21 hours ago

Let me introduce you to Ansible

[-] kkj@lemmy.dbzer0.com 2 points 1 day ago

Why not just edit the YAML directly on the server via a command-line text editor or SSHFS and then push from there when it works?

[-] housedogpartyfavor@lemmy.zip 10 points 2 days ago

No the AI would have called it fixed, “production-ready,” committed, and pushed after the first refactor.

[-] exu@feditown.com 13 points 2 days ago

Make your changes in a new branch and rebase/squash when you push it to main.

[-] IronKrill@lemmy.ca 6 points 2 days ago

This also means modifying your git pull command to pull the correct branch. A small change perhaps, but may be harder than just committing to main lol.

I had a similar problem with GitHub actions, it was hard to test without messing up the main repo history.

this post was submitted on 27 Feb 2026
308 points (98.4% liked)

Programmer Humor

30119 readers
394 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS