title: Cannot get back to my most recent commit(or any of them)
body: <blockquote>
    <p><strong>EDIT</strong>: I got my files back after <code>cd ..</code> and <code>git checkout master</code>.</p>
    
    <p>Strange, it almost seems like this initialized a new repository inside the subfolder <code>templates</code> but I cannot see that I did a command like that.  I still do not know what went wrong, here, though.</p>
  </blockquote>
  
  <p>I've been using Git for about a month on my own projects, working very well.  </p>
  
  <p>However, today, I am not able to get back to my files. I honestly do not know why. I have done some commits, and then I wanted to checkout some earlier commits, so I did <code>git checkout</code> on a commit, and I got to that commit. Then I went a bit further back using the same command. I tried getting back to my most recent commit with <code>git checkout master</code> which for some reason did not work. I then tried <code>git checkout head</code>, thinking that was the command. </p>
  
  <p>I then searched around and got some tips about a few other commands to run, which may have been bad advice. Glad this is only my own project.</p>
  
  <p>I now feel sort of stuck, cannot really do much, and I am afraid to try anything more. Could you possibly help me?</p>
  
  <p>I have included the ouputfrom terminal here, since my last commit, so you can see all the information. Sorry for pushing so much, but I honesly have no idea what went wrong.</p>
  
  <pre><code>➜  templates git:(hello_templates) ✗ gc
  [hello_templates 258d27a] add rot13-page
   5 files changed, 44 insertions(+), 2 deletions(-)
   create mode 100644 appengine/standard/templates/rot13.py
   create mode 100644 appengine/standard/templates/templates/rot13.html
  ➜  templates git:(hello_templates) ✗ gloh
  zsh: command not found: gloh
  ➜  templates git:(hello_templates) glog
  ➜  templates git:(hello_templates) git checkout 615f292
  Note: checking out '615f292'.
  
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:
  
    git checkout -b &lt;new-branch-name&gt;
  
  HEAD is now at 615f292... Crappy hard-coded bullshit
  ➜  templates git:(615f292) glg
  ➜  templates git:(615f292) glog
  ➜  templates git:(615f292) git checkout 076887a
  Previous HEAD position was 615f292... Crappy hard-coded bullshit
  
  HEAD is now at 076887a... Made form with validation, html-escaping and redirection
  ➜  templates git:(076887a) git checkout master
  Switched to branch 'master'
  Your branch is ahead of 'origin/master' by 1 commit.
    (use "git push" to publish your local commits)
  ➜  templates git:(master) gst
  On branch master
  Your branch is ahead of 'origin/master' by 1 commit.
    (use "git push" to publish your local commits)
  nothing to commit, working tree clean
  ➜  templates git:(master) git checkout head
  Note: checking out 'head'.
  
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.
  
  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:
  
  
    git checkout -b &lt;new-branch-name&gt;
  
  HEAD is now at 076887a... Made form with validation, html-escaping and redirection
  ➜  templates git:(076887a) glog
  ➜  templates git:(076887a) git checkout heada
  error: pathspec 'heada' did not match any file(s) known to git.
  ➜  templates git:(076887a) git checkout head
  HEAD is now at 076887a... Made form with validation, html-escaping and redirection
  ➜  templates git:(076887a) git branch
  * (HEAD detached at head)
    hello_templates
    master
  ➜  templates git:(076887a) git checkout HEAD
  ➜  templates git:(076887a) git branch
  * (HEAD detached at head)
    hello_templates
    master
  ➜  templates git:(076887a) gst
  HEAD detached at head
  nothing to commit, working tree clean
  ➜  templates git:(076887a) git checkout master
  Switched to branch 'master'
  Your branch is ahead of 'origin/master' by 1 commit.
    (use "git push" to publish your local commits)
  ➜  templates git:(master) git branch
    hello_templates
  * master
  ➜  templates git:(master) glog
  ➜  templates git:(master) owd
  zsh: command not found: owd
  ➜  templates git:(master) pwd
  /Users/runarkristoffersen/dropbox/Data/cources/FullStack/googleapps/python-docs-samples/appengine/standard/templates
  ➜  templates git:(master) gco 615f292
  error: pathspec '615f292' did not match any file(s) known to git.
  ➜  templates git:(master) ✗ git checkout HEAD^
  error: pathspec 'HEAD^' did not match any file(s) known to git.
  ➜  templates git:(master) ✗ git checkout -
  error: pathspec '-' did not match any file(s) known to git.
  ➜  templates git:(master) ✗ git reflog
  fatal: your current branch 'master' does not have any commits yet
  ➜  templates git:(master) ✗ git checkout $(git log --branches -1 --pretty=format:"%H")
  fatal: your current branch 'master' does not have any commits yet
  fatal: You are on a branch yet to be born
  ➜  templates git:(master) ✗ gb
  ➜  templates git:(master) ✗ git branch
  ➜  templates git:(master) ✗ glog
  fatal: your current branch 'master' does not have any commits yet
  </code></pre>