this post was submitted on 27 Feb 2026
284 points (98.6% liked)

Programmer Humor

30077 readers
2174 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
you are viewing a single comment's thread
view the rest of the comments
[โ€“] exu@feditown.com 12 points 1 day ago (1 children)

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

[โ€“] IronKrill@lemmy.ca 6 points 1 day 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.