this post was submitted on 23 Nov 2023
278 points (96.0% liked)

Programmer Humor

32371 readers
575 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 6 points 11 months ago (1 children)

commits are immutable snapshots

git interactive rebase enters, stage right

[โ€“] aspirate2959 4 points 11 months ago

Which makes a new commit. The old commit before the rebase is still there until it's garbage collected. Editing a commit in any way changes its hash, turning it into a new commit.