DEV Community

Cover image for git rebase, 😎 --> 😱
Rishi
Rishi

Posted on

10 2

git rebase, 😎 --> 😱

You keyed in git rebase , and pressed Enter like a 😎.

Then everything looks ...🔥... not exactly the same as you expected it.
🍒 you realised that you didn't push ⛅ any of your recent work and you're at a point of no return! 💨

😮

😨

😱

😰

😩

🙈

PANIC


💡

Here's a solution

Use git reflog - Manage reflog information.

  1. In the terminal, type in git reflog.
    You'll see a list of all recent commits.

  2. Pick the one which you worked last.
    In my case, commit 29b5617 was the one I needed to go back to.
    git reset --hard 29b5617

    Alternatively, git reset --hard HEAD@{17} would have worked exactly the same.


Let the rest know how you've survived an unwanted git rebase by leaving a comment.

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (1)

Collapse
 
icaruscomplexz profile image
icarusComplexz

Oh my god did I need this earlier today.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay