title: How to get code from last commit
body: <p>I did two commits to the forked Github repo. Raised a pull request and merged that into parent Github repo. When I was testing it saw that code is not working correctly after that. </p>
  
  <p>So I want the code which was there before these two commits. </p>
  
  <p>I know that one way we can do is to revert the merge and get back the previous code.</p>
  
  <p>But I don't want to do that I want to clone the github parent repo on my local machine and get back the previous code which was there before these two commits with out affecting parent repo. Is it possible?</p>
  
  <p>If yes please help me with the commands.</p>
  
  <p>Help will be appreciated.</p>