title: How to assign value of a git command to a variable using script
body: <p>Is it possible to assign the value a git command like <code>git rev-list -n 1 --before=&lt;timestamp&gt; master</code> to a variable.</p>
  
  <p>Ex: <code>commits = git rev-list -n 1 --before=&lt;timestamp&gt; master</code></p>
  
  <p>then I want to something like </p>
  
  <pre><code>git tag RELEASE_01 $commits[0]
  </code></pre>
  
  <p>My repository is on a windows XP system and I'm using msysgit.</p>
  
  <p>Thank you</p>