title: How to move the ignored files too in a checkout?
body: <p>I am working on a branch. There are some ignored files like for example config files and installed composer/bower packages.</p>
  
  <p>If I checkout to an another branch, the ignored files are still there.</p>
  
  <p>I would like to remove them if I check out an other branch, but I would like to get them back, if I checkout the old branch again, to continue the work on it.</p>
  
  <p>How is it possible?</p>
  
  <hr>
  
  <p>The installed composer packages are not part of the repo, only the <code>composer.json</code>, which defines the dependencies. I do not want to reinstall the packages every time I checkout the branch</p>
  
  <p>The <code>.env</code> is also not part of the repo. It contains the database location, username and password. Which is different on each development environment.</p>