title: How do I search git history for detached heads?
body: <p>I accidentally added a commit to a detached HEAD state and then I checked out master again. I no longer have the commit hash, so I can't just check out the commit.  Instead, I am trying to search my git repo for all commits that I made in the last few days so that I can find it.  Is there a command to do this?</p>
  
  <p>It looks like <code>git log --all</code> and <code>git rev-list --all</code> can only search from known refs.  Is there a way to do what I need or am I SOL?</p>