0
点赞
收藏
分享

微信扫一扫

git tag

烟中雯城 2023-11-21 阅读 25

(1). 1. 打tag:

git tag -a tag1.0.0 -m "对应prd版本v1.0.0"
// 把本地版本推送到了远程代码仓库
git push origin --tags

// 删除本地git tag
git tag -d tag1.0.0

(2). release版本:

填完note后:

点击:

修改release版本:

(3). 拉取代码:

// github clone 指定的tag
git clone git@xxx.xxx.xxx:/project_name.git -b tag_name

// 已有仓库切换 tag
git clone git@xxx.xxx.xxx:/project_name.git
// 查看本地tag
git tag
git checkout tag_name

举报

相关推荐

0 条评论