this post was submitted on 20 Feb 2024
1254 points (98.4% liked)
Programmer Humor
19817 readers
317 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The machine spirit requires that you submit the correct incantations
like this?
EDIT: Don't actually run it.
Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?
You are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD.
Though, it only affects the currently selected branch.
The thingmabob that does the job is bippity-boppity-boo.