title: How can I git pull ignored files?
body: <p>For my Drupal 8 installation I want to use the following workflow:</p>
  
  <p>1) On the local machine installs and updates are done with Composer. Composer files are then pushed to Bitbucket.</p>
  
  <p>2) On the remote server I have a staging folder in which I pull the composer files and do a composer install.</p>
  
  <p>3) On the same server I want to have another folder for the production site. Here I clone the staging folder and later pull all its changes.</p>
  
  <p>The problem now is, that Drupal core and modules folders (those installed by Composer) are in gitignore. So they are not pulled from staging to production. How can I track/version control the WHOLE staging folder and pull changes to production? If I delete the gitignore files I suppose they will be pulled again next time from Bitbucket.</p>
  
  <p>EDIT: This article describes a solution, but I don't really understand how it works with this CI server: <a href="http://nuvole.org/blog/2016/aug/19/optimal-deployment-workflow-composer-based-drupal-8-projects" rel="nofollow noreferrer">http://nuvole.org/blog/2016/aug/19/optimal-deployment-workflow-composer-based-drupal-8-projects</a></p>