title: Switch git branch not updating files
body: <p>I have created a new branch and added some files.</p>
  
  <p>Locally I use tortoise GIT and when I switch to the new branch, the files are updated.</p>
  
  <p>On my production server using CLI, when I switch to the new branch with <code>git checkout mynewbranch</code>, the files are not updated.</p>
  
  <p>When I switch with <code>git checkout origin/mynewbranch</code>, the files are updated but i get the following message:</p>
  
  <pre><code>You are in 'detached HEAD' state. You can look around, make
  experimental changes and commit them, and you can discard any commits     
  you make in this state without impacting any branches by performing 
  another checkout.
  </code></pre>
  
  <p>Why is this?</p>