①:git tag 查看当前所有tag
当前无tag
②:git tag "tagname" 打tag
成功打了一个名为testTag的tag
从下图中可以看出,打好的tag是固定的,是不会随着指针的移动而移动的
③:git tag -d "tagname" 删除tag
④:git tag "tagname" "githash" 指定hash打tag
⑤:git checkout "tagname" 检出tag/回退到指定tag位置
使用下面命令创建分支再次查看
①:git tag 查看当前所有tag
当前无tag
②:git tag "tagname" 打tag
成功打了一个名为testTag的tag
从下图中可以看出,打好的tag是固定的,是不会随着指针的移动而移动的
③:git tag -d "tagname" 删除tag
④:git tag "tagname" "githash" 指定hash打tag
⑤:git checkout "tagname" 检出tag/回退到指定tag位置
使用下面命令创建分支再次查看