title: How do you tell IntelliJ to 'exclude' directories from build/run but include them in git pushes?
body: <p>How do I mark packages as excluded (i.e. so IntelliJ doesn't refuse to run or build the project if one of them is broken) whilst still pushing them via git?
  How does one separate the functionalities of exclusion from git and exclusion from runtime?</p>
  
  <p><strong>Context:</strong></p>
  
  <p>I am basically using IntelliJ to hold emptyworksheet/worksheet/solutions packages in the same project as it doesn't allow multiple projects open at once.
  It is not intended to be elegant or workable - just to emulate the environment I write Java in whilst keeping the 'solutions' and 'empty worksheets' handy for repeat attempts.</p>