this post was submitted on 25 Jul 2023
115 points (100.0% liked)

Memes

1357 readers
5 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] Luvon 5 points 1 year ago (2 children)

Worst words heard today: reset has reset to the last head that was pushed to remote

Goodbye three local commits, I’ll miss you

[–] implicit_cast@kbin.social 6 points 1 year ago (1 children)

git reflog! It gives the history of commits that your HEAD has previously pointed at.

If a rebase goes bad, you can fish out your old HEAD and recover your pre-rebase state.

[–] Luvon 1 points 1 year ago

I tried; unfortunately it was for talend which really bastardized how git is used. And I was unable to make reflog go back. I could see it. I tried to check it out and the ide was sure there was no code to push and that it was on the correct branch still.

Joy of low code tooling. They make the files impossible to work with directly and break and bend text tooling to work in ways it was never designed.

Oh and you have to use their ide which is based on eclipse, and they removed dark mode.

Talend is really terrible.

[–] GBU_28@lemm.ee 2 points 1 year ago

When I have zero faith in myself I'm not above copying the whole committed file and pasting it.in a dm to myself in slack.

Sometimes you're in a rush and it's good to look after yourself lol.

Also reflog, but the void is calling for code.

[–] XTL@sopuli.xyz 3 points 1 year ago (1 children)
[–] Bipta@kbin.social 3 points 1 year ago* (last edited 1 year ago)

git diff ...

No differences

[–] gnuplusmatt@startrek.website 1 points 1 year ago

Git and ostree

[–] kresten@feddit.dk 1 points 1 year ago
[–] azerial@lemmy.dbzer0.com 1 points 1 year ago

I hear ya. I used to be an engineer on an MMO and worked on the patching system. We had to rebase periodically and it was always nice to see it be successful. Lol