title: Accidentally deleted the .git folder
body: <p>I was following an instruction on Heroku to try to find out the slug size of my app </p>
  
  <blockquote>
    <p>Your slug size is displayed at the end of a successful compile. You
    can roughly estimate slug size locally by doing a fresh checkout of
    your app, deleting the .git directory, and running du -hsc.</p>
    
    <p>$ du -hsc | grep total
    2.9M total</p>
  </blockquote>
  
  <p>By "fresh checkout of your app", I thought it meant just simply do git checkout -b test. So I did that, then i rm -rf .git to delete the .git folder. and did the du -hsc to get my slug size. I did get it, but when I tried to git checkout master. It says I don't have a git repository in this folder. -- Now I do have my app git push to both a location on heroku and a location on github. Is it possible that I can, well, to speak plainly, to make things return to what they were before I deleted the .git folder?</p>
  
  <p>Thank you for helping out!</p>