Revert Git rebase that is pushed to origin

34 views Asked by At

I did some changes in my feature branch. Before pushing, I rebased it to master branch ON BRANCH Feature(featureBranch) -> git rebase master

then i pushed it

git push origin featureBranch

Then I realised I should not have rebased master but dev. I did git reflog, found out head (headId) when rebase started.

git reset (headId)
git reset --heard (headId)

Now i have some untracked files and origin feature branch is still not updated. How do I revert rebase to origin feature branch?

0

There are 0 answers