Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undoing Git rebase --abort

I had local changes in my repository. before push , i fetch from remote and did rebasing it shows some conflicts and i fixed it.

and then i tried to push my changes , before commit it shows still need merge so i did rebase --abort without commiting my changes. after that my local changes was gone. i tried git reflog i dont find mine since i didnt commit.

I need my local changes how do i get it back? how rebase --abort delete my changes?

I did rebase --continue once i fix conflict. since it says need update. then only i gave rebase --abort

like image 722
Mohideen bin Mohammed Avatar asked Oct 28 '25 09:10

Mohideen bin Mohammed


1 Answers

If you are using IntelliJ IDEA, you can right-click the root of your project go to Local History, and then Show History. You can now see all recent local changes and revert any files you want.

like image 72
valegians Avatar answered Oct 29 '25 21:10

valegians



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!