You are viewing a single thread.
View all comments
5 points

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

Goodbye three local commits, I’ll miss you

permalink
report
reply
2 points

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.

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply

Memes

!memes@lemmy.ml

Create post

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.

Community stats

  • 7.9K

    Monthly active users

  • 12K

    Posts

  • 266K

    Comments