How to do a “git checkout -b ” from a remote tag

前端 未结 4 547
不知归路
不知归路 2021-02-03 20:32

I\'m trying to create a branch from a remote tag, but it seems there\'s no way to do it. When I try

git checkout -b test origin/deploy

where or

4条回答
  •  别那么骄傲
    2021-02-03 20:44

    to list all the tags

    git fetch
    git tags -l 
    

    to create a local branch that points to the tag

    git checkout tags/ -b 
    git checkout -b  tags/
    

提交回复
热议问题