title: Store Git Commit IDs
body: <p>I've created a quick batch script to generate &amp; store the Git commit ID for each build we run.</p>
  
  <p><em>Note:</em>
  We run our builds within Azure DevOps</p>
  
  <p>Current script:</p>
  
  <pre><code>cd C:\Projects
  git show -s --format=%%H &gt;&gt; GitHash.txt
  </code></pre>
  
  <p>Output (CommitID):</p>
  
  <pre><code>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  </code></pre>
  
  <p>I want to set the name of the text file to the commit ID generated if this is possible?</p>
  
  <p>Any other suggestions are very welcome.</p>