title: How to retrieve git changes
body: <p>I have cloned  repository to new folder. In the new folder I have made some changes after making changes i created one more branch to load the new folder. </p>
  
  <p><img src="https://i.stack.imgur.com/GntD7.png" alt=""> from git cmd I have used</p>
  
  <p>a) <code>git status</code></p>
  
  <p>b) <code>git add .</code></p>
  
  <p>c) <code>git commit</code></p>
  
  <p>d) <code>git push origin branchname</code></p>
  
  <p>e) <code>git fetch &amp;&amp; git checkout</code></p>
  
  <p>Now in the new folder I cant able to see the changes all the new changes has been removed and it is updated with the initial clone code .
  How can I retrieve the changes made earlier</p>