this post was submitted on 06 Oct 2025
834 points (96.7% liked)

Programmer Humor

26827 readers
2409 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
 

Yeah learned this the hard way.

you are viewing a single comment's thread
view the rest of the comments
[–] theneverfox@pawb.social 6 points 4 days ago (1 children)
[–] kibiz0r@midwest.social 18 points 4 days ago (1 children)

Think of it like your browser history but for Git. It’s a list of the SHAs related to your recent operations.

And because Git is a content-addressable data store, a SHA is basically like a URL. Even if a branch no longer exists, if you know the SHA it pointed to then you can still check out the exact contents of that branch. The reflog helps you find that.

[–] theneverfox@pawb.social 17 points 4 days ago (2 children)

Goddamit... It's ref log, not re flog. I thought this was related to blame and never touched it lmao

[–] Jankatarch@lemmy.world 8 points 4 days ago* (last edited 4 days ago)

I guess "git sanasaryan-han-torture" was an overkill sometimes...

[–] hayvan@feddit.nl 4 points 4 days ago (1 children)

Re flog is when your devs don't follow your guides and mess uo git history again.

[–] theneverfox@pawb.social 2 points 4 days ago

I legit thought it was to publicly call out a user to be (metaphorically) flogged

And while it's not how I do things, I totally understand the impulse. Tell me that doesn't sound like something that could exist