I lost a lot of my work because I had unfinished rebase. I find out it when I was trying commit my 2 day work. I couldn't commit works until rebase is not resolved, so I abort it, because skip or continue didn't work. But with abort all my changes are gone ... can you tell me if it possible to recover these data please? Thank you in advice.
Revert uncommitted changesIn the Commit tool window Alt+0 , select one or more files that you want to revert, and select Rollback from the context menu, or press Ctrl+Alt+Z .
So for example, if you rebase featureA branch onto your master branch, but you don't like the result of the rebase, then you can simply do git reset --hard featureA@{1} to reset the branch back to exactly where it was before you did the rebase.
Open the repository folder in your terminal (linux, osx) or in the Git Bash (windows). Let's abort and start again, execute in the terminal: "git rebase --abort" . This command will revert your master to the HEAD state before you start the rebase.
If you are using Intellij Idea you can use Idea's Local History.
Right click on package of source code which you want to restore (e.g, main) and select Local History > Show History
and you will see your code history (also uncommited changes). Now you can find change when you lost your code and revert it.
IntelliJ itself is extremely aggressive about indexing and versioning your local changes to files (for me, it goes back months). Even if git has no way of helping, you might be able to recover your changes from IntelliJ.
Try this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With