this post was submitted on 23 Jun 2026
93 points (93.5% liked)

Programmer Humor

31975 readers
967 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] towerful@programming.dev 25 points 3 days ago (3 children)

Yeh I use git (git commit --amend)

[–] Archr@lemmy.world 3 points 1 day ago* (last edited 1 day ago)

git commit --amend --no-edit and git push --force-with-lease

No-edit skips opening an editor for the commit message and just reuses the same message.

Force-with-lease will force push but only if your local is not missing commits that remote has. Ie other people haven't pushed anything since you last pulled.

[–] wpb@lemmy.world 1 points 2 days ago

If you're comfortable with whatever text editor vim uses, give git rebase -i a try.

[–] Gonzako@lemmy.world 2 points 3 days ago (3 children)

Would this also trigger (git rev-parse) to change? I have CI/CD listening to changes on the master branch

[–] waldfee@feddit.org 6 points 2 days ago* (last edited 2 days ago) (1 children)

When you have to amend a commit that you have already pushed you have to force push the amendment. That should then trigger the Pipeline

[–] tyler@programming.dev 4 points 2 days ago (1 children)

--force-with-lease though, not just force.. It's a good habit to have because then when you are working with other people you won't fuck everything up.

[–] doppydrop@lemmy.ca 2 points 2 days ago

This is good advice, I got too used to being a solo dev that once I worked with a larger team... mistakes were made.

[–] Witchfire@lemmy.world 2 points 2 days ago (1 children)

Work off the master branch first, don't push to prod until you're ready to

[–] Gonzako@lemmy.world 1 points 2 days ago (1 children)

Well, prod is luckily the people I have next room. I made the setup so changes get uploaded quickly. I could do branches and all that stuff?

Yeah, but i'd rather not work to work and just get it out the door. What my setup is for is that changes get pulled off the master branch and deployed without an apparent interruption of service.

I see collaboration tools just the same as abstractions, you don't use them just to use them. They need to solve a problem.

[–] Witchfire@lemmy.world 3 points 2 days ago (1 children)
[–] Gonzako@lemmy.world 2 points 2 days ago (1 children)

It's a collaboration tool and i'm not collaborating with anyone so why'd I bother going through the extra bells and whistles?

[–] Witchfire@lemmy.world 5 points 2 days ago

VCS's are organizational tools as much as they are collaboration tools. You should learn it and use it to improve your coding abilities through better management.

[–] VibeSurgeon@piefed.social 1 points 2 days ago

Well, there's your problem.

Get yourself a nice button/endpoint you can hit to trigger CI/CD that way instead