454
you are viewing a single comment's thread
view the rest of the comments
[-] Valmond@lemmy.mindoki.com 18 points 1 year ago

fetch, reset --hard, checkout -b and cherry-pick?

:-D

[-] xmunk@sh.itjust.works 13 points 1 year ago

Nah, rebase -i, squash, fsck and reflog

[-] rikudou@lemmings.world 11 points 1 year ago* (last edited 1 year ago)

Must be an interesting work if you never add, commit or push.

Edit: How the hell did you get the repo without clone?

[-] xmunk@sh.itjust.works 11 points 1 year ago

Pshaw, real programmers write out the contents of .git by hand.

(Also, it was a joke, the last two commands I listed are ones you'll ideally never need in your life)

[-] overcast5348@lemmy.world 3 points 11 months ago

I was scared of reflog too. Had to use it for the first time recently after I accidentally'd a branch that I hadn't pushed to remote yet. I was so glad that I could recover it all in <5 commands.

[-] Valmond@lemmy.mindoki.com 6 points 1 year ago

reflog saved my life once after a stupid misshap.

All rebase are belong to us (onto, rebase, and ofc interactive) but what's fsck (I don't squash personally)?

[-] xmunk@sh.itjust.works 4 points 1 year ago

Fsck is File System Check - realistically you should never need to use it.

[-] muix@infosec.pub 11 points 1 year ago* (last edited 1 year ago)

More like clone, pull, commit, and push --force

>:-D

[-] Valmond@lemmy.mindoki.com 3 points 1 year ago

push origin head

^^

this post was submitted on 13 Dec 2023
454 points (93.7% liked)

Programmer Humor

19804 readers
536 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