title: git recover branch deleted on remote and local folder deleted
body: <p>I have lost some work and Im trying to recover it. Basically I created a branch locally, commited, pushed, and then did some clean up and deleted the branch locally, remotely and the directory containing the project locally (I thought I could always clone it anytime later). I don't know why I forgot to merge with "dev".</p>
  
  <p>I checked my bash history to see what could have happened, and I think I could figure out what commands were executed (see below).</p>
  
  <p>I have been looking around for answers about this, found tons of them but none worked (even the promising fsck/reflog)</p>
  
  <p>basically this is what seem to have happened (2 weeks ago) :</p>
  
  <pre><code>git clone ssh://.../myproject
  cd myproject
  git checkout dev
  vim hello
  git commit -m "new commit"
  git push origin dev
  
  git checkout -b newbranch
  vim blabla
  git add blabla
  git commit -m "new commit"
  git push
  git checkout dev
  git push origin --delete newbranch
  git branch -d newbranch
  cd ..
  rm -rf myproject
  </code></pre>
  
  <p>English is not my native language, I can clarify any point/edit my question if needed. Thanks in advance for helping me find a solution other than jumping out of the window</p>