git 拉取tag分支的操作步骤
·
1、更新本地代码
git pull //更新本地代码,保证处于最新状态
git ftech --all
2、从远程仓库获取最新的标签列表
git fetch --tags
3、列出标签列表
git tag

4、切换到指定标签
git checkout tags/指定标签

5、在标签基础上创建一个新的分支
根据实际需要决定是否创建一个分支,以便进行开发或者代码修改:
git checkout -b <new-branch-name> tags/<tag_name>
或者根据提示使用命令:
git switch -c <new branch name>
上传到服务器:
git push --set-upstream origin feature/<branch_name>
git branch -vv //查看分支对应关系是否正确
更多推荐
所有评论(0)