title: How to commit to master without checking out it
body: <p>I installed the project from USB. I developed some classes (java project). Then I called <code>remote</code> on git, trying to checkout "master", but it says:</p>
  
  <blockquote>
    <p>Please move or remove them before you can switch branches.<br>
    Aborting</p>
  </blockquote>
  
  <p>If I remove them, I will lose my files. If I <code>stash</code> them, then <code>unstash</code> after the "master" check out, would this be a solution? </p>
  
  <p>To test, I only committed one file to another branch. When I try to compare that branch with "master", github says:</p>
  
  <blockquote>
    <p>There is nothing to compare</p>
  </blockquote>
  
  <p>One file is not important, but I have lots of files. What should I do?</p>