126
submitted 6 days ago* (last edited 6 days ago) by Gonzako@lemmy.world to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Archr@lemmy.world 5 points 5 days ago* (last edited 5 days 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.

this post was submitted on 23 Jun 2026
126 points (92.6% liked)

Programmer Humor

32043 readers
196 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