title: Creating a zip file of files from repo for revert purposes
body: <p>My normal process for deploying to an FTP server from git is this:</p>
  
  <ul>
  <li><code>git status</code> </li>
  <li><code>git add .</code></li>
  <li><code>git commit -m "Message"</code></li>
  <li><code>zip update.zip $(git diff --name-only HEAD^)</code> creates a zip file. </li>
  <li><code>git push origin master</code></li>
  </ul>
  
  <p>The zip file that is created is a list of all the updated files with their paths.</p>
  
  <p>I'd like to do something similar that creates a zip file with the same content but instead listing the files before they were changed (so the previous commit for each).  This way if there is any issue with any of the files I can quickly revert the changes.</p>
  
  <p>Any suggestions?</p>