Discard previous commits

Guys, Need hep in git, I happened to merge the branches for the final production code, but I ended up with these commits (IMAGE) and I want to go back to the last commit visible in the image, Please help me.

use git checkout Hash (Hash of commit where you want to navigate)

© 2017 GitHub, Inc.
with by
GitHub Education