I had a bit of a gaff and swapped to the completely wrong branch, pulled, and then merged our dev branch to get everything up to date. Turns out, the branch I switched to hadn't been touched in several months, and was worked on by a developer who's name I don't know and who no longer works at the company.
Given that I merged our dev branch, when I do a git log
, I see allllll of the commits from everyone. So I have no idea what the last commit made on this branch was. Is there a way to see only the commits done on the my_feature
branch I'm currently on?
The goal is to undo all the damage I've done and roll it back to the state it was in when I found it.
Edit:
Added answer below.