title: How to commit and push the subfolder with .git to github?
body: <p>My blog is built with <code>hexo</code>, which will be pushed to <code>blog</code> repo in <code>github</code></p>
  
  <p>blog/</p>
  
  <p>--themes/</p>
  
  <p>----pacman/</p>
  
  <p>But there is a sub forder <code>pacman</code>. It was cloned from other repo in github, meaning it has its own <code>.git</code> folder.</p>
  
  <p>When I try to commit and push the whole directory to <code>blog</code> repo, the contents of pacman are NOT pushed to <code>github</code></p>
  
  <p>I try to delete <code>.git</code> in <code>pacman</code> but it could NOT be pushed to <code>github</code> either.</p>
  
  <p>Here is the git status after deleting the <code>.git</code> in <code>pacman</code></p>
  
  <pre><code>$ git status
  On branch master
  Your branch is up-to-date with 'origin/master'.
  
  nothing to commit, working directory clean
  </code></pre>
  
  <p>Here is the <code>.gitignore</code>， it has nothing to do with the <code>pacman</code> as far as I could see</p>
  
  <pre><code>.DS_Store
  Thumbs.db
  db.json
  debug.log
  node_modules/
  public/
  .deploy/
  </code></pre>
  
  <p>When I push to <code>blog</code> repo, I'd like to push everything under <code>pacman</code> as well. How can I do that?</p>