title: Git: How to push dist directory to a separate branch of the same repository
body: <p>I have a project in existing repository, the folder structure :</p>
  
  <pre><code>myproject (master)
  +-- app/ (master)
  +-- dist/ (in .gitignore, but i need it as other branch)
  +-- node_modules (.gitignore)
  +-- index.html (master)
  +-- gulpfile.babel.js (master)
  +-- package.json (master)
  </code></pre>
  
  <p>Is there a way to push <code>dist</code> to a separate branch of the same repository?<br>
  To clarify, I want only <code>dist</code> files in the <code>deploy</code> branch, and keep the another files in the <code>master</code>.</p>