title: How to add commit hash to details of an executable file
body: <p>One of my previous employers added the GIT hash of the current commit to the &quot;Details&quot; tab of the file properties of the executable, once it was built.</p>
  <p>As I found <a href="http://stackoverflow.com/questions/949314">here</a>, this command gives the current commit hash:</p>
  <pre><code>git rev-parse --short HEAD
  </code></pre>
  <p>But does anybody know how I can add this to the &quot;Details&quot; tab of the properties of a file?</p>
  <p><strong>Edit follow-up of this question:</strong><br />
  This question has been written while I had no clue how to start, and there are some general answers. Afterwards, I have decided to go for the <code>GitVersion</code> way of working. I have some question about this too, and those are handled in <a href="https://stackoverflow.com/questions/72011195">this follow-up question</a>.</p>