title: How to properly commit in repository with Github Pages branch
body: <p>i've got a question</p>
  
  <p>Situation based on <a href="https://pages.github.com/" rel="nofollow">gh-pages</a> </p>
  
  <p>My project uses preprocessors and another difficult staff, so, my project stucture looks as follows:</p>
  
  <p><strong>master branch</strong></p>
  
  <pre><code>./-|
     /src
     /node_modules
     /public-|
         /js
         /css
         /etc
         index.html           
     /etc
     package.json 
     etc
  </code></pre>
  
  <p>all code sources in <strong>src</strong> folder, compiled - into <strong>public</strong> folder.<br>
  <strong>public</strong> folder also in .gitignore<br>
  I would like to commit all files in my public folder into gh-pages branch. Is it possible? If yes, how to do this? This is a structure of my <strong>gh-pages</strong> branch</p>
  
  <p><strong>gh-pages branch</strong>  </p>
  
  <pre><code> ./-|
      /js
      /css
      /assets
      index.html    
  </code></pre>
  
  <p>I think it will be great to run grunt/gulp tasks and commit result into another branch.</p>