title: git stuck in detached head - cannot revert to previous file in branch
body: <p>I committed a change to my script that completely broke it. I tried restoring to a previous commit in git using this command:</p>
  
  <pre><code>git checkout 2af6889905af99b78f7401cb17b718ba86240c2a aws_utils.sh
  </code></pre>
  
  <p>But now I'm stuck in a detached head:</p>
  
  <pre><code>git branch -a
  * (HEAD detached at 2af6889)
  </code></pre>
  
  <p>The branch that I am working in is called: update_aws_delete_user_function.</p>
  
  <p>I am not working in the master branch currently.</p>
  
  <p>How do I merge the functional file in the hash 2af6889 back into the main branch called origin/update_aws_delete_user_function?</p>