简体   繁体   中英

Git checkout branch not working

I am new in git and trying to understand what is wrong here.

[root@root /]# git describe --tags
16.0.13-7-g56099d7

Try to upgrade to 16.0.15 branch or tags (got error)

[root@root /]# git checkout 16.0.15
error: pathspec '16.0.15' did not match any file(s) known to git.

Trying different way (no error)

[root@root /]# git checkout -b 16.0.15
Switched to a new branch '16.0.15'

But still showing older version

[root@root /]# git describe --tags
16.0.13-7-g56099d7

Am i missing something?

First, change to an appropriate directory, you seem to be doing this at root or / level. If possible you should also change user to something other than root .


Next, clone the repo from the new location;

git clone https://github.com/openstack/openstack-ansible.git

then change into the cloned repo's directory;

cd openstack-ansible/

checkout the desired branch;

git checkout 16.0.15

lastly, follow the rest of the instructions at https://docs.openstack.org/openstack-ansible/pike/user/minor-upgrade.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM