标签云

微信群

扫码加入我们

WeChat QR Code

我怎么能把远程目录的第一次吗?[重复]

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: master, qa and dev.

After taking clone to the project, how can I checkout qa or 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

2018年05月27日20分59秒

Any Git tutorial will tell you how to switch branch, probably in the first chapter.

2018年05月27日20分59秒

I know to switch a branch, --git checkout branchName, but this is when you have that branch on your local machine.

2018年05月27日20分59秒

Did you try git checkout qa?

2018年05月27日20分59秒

Yes, it doesn't work

2018年05月27日20分59秒

git checkout qa and git checkout dev should suffice.

2018年05月27日20分59秒