title: checkout commitID not working
body: <p>I'm trying to checkout to write a bash script in windows to read a commit id from a textfile then checkout. As in the following steps:</p>
  
  <pre><code>while IFS='' read -r line || [[ -n "$line" ]]; 
  do
     cd C:/.....
     git checkout $line
  done &lt; "$1"
  </code></pre>
  
  <p>I'm getting the following error:</p>
  
  <pre><code>did not match any file(s) known to git.
  </code></pre>