title: git checkout -b newbranch lost changes on current branch
body: <p>So basically, here's what happened with me:</p>
  
  <ol>
  <li>I was working on a branch, let's call it 'dev'</li>
  <li>I didn't yet stage or commit my changes. However, I needed to test something quick for someone in a new branch.</li>
  <li>So I executed git checkout -b testbranch dev on the command line</li>
  <li>This created a branch called 'testbranch' off of 'dev' and checked out that branch</li>
  <li>However, all the files I had modified in my 'dev' branch (which I didn't stash, stage, and commit prior to executing point 3) got listed in the terminal with a M next to them to indicate modified.</li>
  <li>I worked on the testbranch and once the work was complete, staged and committed my changes and switched back to 'dev' branch.</li>
  <li>Unfortunately, it looks like that all the changes I had made in the dev branch prior to creating/switching the testbranch got lost when I looked at the project in xcode.</li>
  </ol>
  
  <p>So my question is: Is there any way for me to recover the files? Note that my terminal session is still running and I will keep it running until I either get a solution to recover my changes or I find out that those changes are lost forever. HELP!!!!</p>
  
  <p>Thanks,</p>
  
  <p>-Vivek Kinra</p>