title: I have a code that reads git log returning the error below
body: <p>Error message: &quot;fatal: your current branch 'master' does not have any commits yet&quot;</p>
  <p>After Making a file with this code executable</p>
  <pre><code>#!/usr/bin/env bash
  
  cd &quot;$(dirname &quot;$(readlink -f &quot;$BASH_SOURCE&quot;)&quot;)/..&quot;
  {
      cat &lt;&lt;- 'EOH'
         
      EOH
      echo
      git log --format='%aN &lt;%aE&gt;' | LC_ALL=C.UTF-8 sort -uf
   } &gt; AUTHORS
  </code></pre>