title: How do I create a git branch so that files I add to it are not added to master?
body: <p>I want to create a git branch that will work independent of the master branch. I want all the code that is present in the master till now, but any further changes in the master should not reflect in the branch and any changes in the branch should not reflect in the master.</p>
  
  <p>I used this command to create branch:</p>
  
  <pre><code>git branch test
  </code></pre>
  
  <p>But any file I add in <code>master</code>, I can see in <code>test</code>. And any new file added in <code>test</code>, I can see in <code>master</code>. How to avoid this? I did not use any --track option while creating the branch.</p>