title: push with git subtree to project root
body: <p>I am currently working on a github pages project and generate the website to a folder named <code>dist</code> on a branch named <code>dev</code>. I want to push the content of dist to the master branch. Googling around I found github subtree and I could push the <code>dist</code> directory to <code>master</code> using the command:</p>
  
  <pre><code>git subtree push --prefix dist origin master
  </code></pre>
  
  <p>issue is this pushes the entire directory. So master branch has one directory named <code>dist</code>, containing <code>dist/index.html</code> etc. Instead I would like to push all the content of dist to the master branch. So that the master branch contains <code>index.html</code> and all other content. How can this be done?</p>