I have been trying to run a batch file that will fetch all branches from a predefined repo and checkout one of the branches.
git fetch --all
git checkout myBranch
pause
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.
I have also tried checking out to the path of the folder and running the commands, still to no avail.
However, when I write the commands into the cmd it works correctly.
Any help will be much appreciated