title: Deploy previous git commit to AWS
body: <p>I want to test how a previous version of a project deploys to my Elastic Beanstalk environment. I've used <code>git checkout xxxxx</code> to revert to my previous version, but when I used <code>eb deploy</code> I get the following response:</p>
  
  <blockquote>
    <p>WARNING: Git is in a detached head state. Using branch "default".<br>
    WARNING: Git is in a detached head state. Using branch "default".<br>
    WARNING: Git is in a detached head state. Using branch "default".<br>
    ERROR: This branch does not have a default environment. You must
    either specify an environment by typing "deploy my-env-name" or set a
    default environment by typing "eb use my-env-name".</p>
  </blockquote>
  
  <p>I ran <code>eb deploy [my-eb-environment-name]</code> and it appeared to work:</p>
  
  <blockquote>
    <p>WARNING: Git is in a detached head state. Using branch "default".<br>
    Creating application version archive "app-9d67-180108_150155".<br>
    Uploading: [##################################################] 100% 
    Done...</p>
  </blockquote>
  
  <p>But the deployment still failed.</p>
  
  <p>Did it deploy the checked out version, as I wanted it to, or is it still pushing the version I suspect is broken?</p>