James
James

Reputation: 25

can't checkout the bootstrap v4-dev branch

I am trying to checkout the bootstrap v4-dev branch. but not working.

my git version is: git version 2.7.0.windows.1

I already cloned the repository.

$ git remote -v
origin  https://github.com/twbs/bootstrap.git (fetch)
origin  https://github.com/twbs/bootstrap.git (push)

execute git fetch origin output nothing.

$ git fetch origin

$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master

and got error when checkout obviously.

$ git checkout v4-dev
error: pathspec 'v4-dev' did not match any file(s) known to git.

$ git checkout -b v4-dev origin/v4-dev
fatal: Cannot update paths and switch to branch 'v4-dev' at the same time.
Did you intend to checkout 'origin/v4-dev' which can not be resolved as commit?

So where is wrong?

Upvotes: 1

Views: 165

Answers (1)

yushulx
yushulx

Reputation: 12160

It's not v4-dev. It is master. You should checkout as follows:

$ git checkout -b v4-dev origin/master

Upvotes: 1

Related Questions