I accidentally committed and merged some work into another branch when I wasn't meant to. To fix this I need to go back to an earlier commit.
However, when I run git reflog I get a list of commits relating to another branch I am working on. None of them are related to the branch I am currently working on and have checked out now.
Would anyone know why this is and how I could find the commits relating to my branch?