1

I had issues in my build and I did git reset hard to one of the older branches and now I am on that old branch but my origin/main is still on the new one. How can I merge my changes from main to origin/main ?

For example - origin/main is on commit b7e4f25 I did git reset --hard 9ad219d (This was the earlier commit before b7e4f25).

No local branch main is on 9ad219d and origin/main and origin/HEAD is on b7e4f25. I want to bring back origin/main and origin/HEAD to 9as219d.

Jainam Shah
  • 489
  • 1
  • 6
  • 23

0 Answers0