title: How to remove tmp directory on git checkout?
body: <p>I have rendered cached templates inside <code>tmp</code> directory. I have to clear the folder manually whenever I use <code>git checkout</code> or <code>git pull</code>. Can I configure git to do it automatically for me and all the users that are using repository?</p>
  
  <p>I am using <code>ember-cli</code> with <code>broccoli</code> to manage assets. Broccoli is compiling templates and store them cached inside <code>tmp</code> directory that is not part of git repository. My team members can edit templates and I can pull the changes from git. The cache is usually outdated afterwards, because it is not a part of repository. At the moment I have to clear it manually. It is tiresome. I want to have it done automatically. I could define aliases to git commands but it is only an ugly workaround.</p>