This question already has an answer here:
I am asked to take clone of project repository from GitHub server.
There are three branches on server:
After taking clone to the project, how can I checkout
dev branch as both the branches are not on my local machine?
I tried the command
git checkout qa
it raised an error
$ git checkout qa error: pathspec 'qa' did not match any file(s) known to git.
I edited the question Biffen
Any Git tutorial will tell you how to switch branch, probably in the first chapter.
I know to switch a branch, --git checkout branchName, but this is when you have that branch on your local machine.
Did you try git checkout qa?
Yes, it doesn't work
git checkout qa and git checkout dev should suffice.