title: Git: How to push a subdirectory to a separate branch of the same repository
body: <p>The current project I am working on is limited to one git repository. 
  My current working directory looks something like this:</p>
  
  <pre><code>dist/
    *distribution files
  
  src/
    *src files
  </code></pre>
  
  <p>We have an Azure server set up to automatically deploy anything pushed to the 'deploy' branch of our repo. So the objective is to push src files to master and the content of the dist folder to the 'deploy' branch. </p>
  
  <p>What I've been doing up until now is branching off master, deleting the src folder, and moving the contents of the dist folder to the root before pushing to deploy. </p>
  
  <p>I know ideally we would have separate repos, but that's not an option currently. Is there an easier way to do this?</p>