title: using batch file to run git commands
body: <p>I have been trying to run a batch file that will fetch all branches from a predefined repo and checkout one of the branches.</p>
  
  <pre><code>git fetch --all
  git checkout myBranch
  pause
  </code></pre>
  
  <p>The response I get from the command line is that the commands run successfully but the folder I ran the file in, shows no evidence of having checkout any branch.</p>
  
  <p>I have also tried checking out to the path of the folder and running the commands, still to no avail.</p>
  
  <p>However, when I write the commands into the cmd it works correctly.</p>
  
  <p>Any help will be much appreciated </p>