Need to reset git branch to origin version

I was accidentally working on a branch I shouldn’t have been for a while, so I branched off of it giving it the appropriate name. Now I want to overwrite the branch I shouldn’t have been on to the version from origin (github). Is there an easy way to do this? I tried deleting the branch and then resetting up the tracking branch, but it just gives me the version I was working on again.

5 s
5

Leave a Comment