title: Smallest Git Folder Footprint in order to push tags
body: <p>This question is with regards to being able to create and push git tags in an Azure RELEASE pipeline.  I know how to push the tags but the Azure Release pipeline doesn't work well with using both a published artifact and repo artifact so I am thinking that in the Build Pipeline I need to zip the checked out source folder <code>Build.Repository.LocalPath</code> and push that with my other artifacts and then unzip in the release pipeline and create/push the tags there.</p>
  <p>I don't need all the files and history/etc of the repo, I just need enough to support this process because the source code repo with all the history is 1GB zipped.</p>
  <p>Question: How do I get my git folder to be the smallest footprint so I can unzip it later and create the necessary tags/etc. I don't need the history or even the files I just need to be able to execute these commands:</p>
  <pre><code>cd %Agent_ReleaseDirectory%\_repo
  git tag  mytag
  git push -f --tags 
  </code></pre>
  <p>More Info. This is on a windows build agent.   The build pipeline pulls down the repo and commit.  I can powershell/cmd into the directory and execute any git command or delete files/etc.  I just don't know what is the most efficient way to clean up this folder (compressing and publishing the artifact is already done).</p>