GIT 标签tag

作者: 一颗老鼠屎 | 来源:发表于2019-10-19 16:47 被阅读0次

创建

git tag 标签名

git tag -a 标签名 -m "备注"

git tag 标签名 节点id

查看

## 查看所有标签
git tag     

## 模糊匹配
git tag -l "tag_6.7.1_*"      

## 标签详情
git show 标签名

删除

git tag -d 标签名

推送

## 推送指定标签
git push origin 标签名

## 将本地所有标签一次性提交到git服务器
git push origin -–tags

动作

切换

## 切换到指定标签节点
git checkout 标签名

Lenovo@DESKTOP-OMKC0JH MINGW64 /d/test/develop/saas-service-impl (develop)
$ git checkout xiaoli
Note: checking out 'xiaoli'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9ef9458 小李:添加了一行代码
Lenovo@DESKTOP-OMKC0JH MINGW64 /d/test/develop/saas-service-impl ((xiaoli))
$ git branch -a
* (HEAD detached at xiaoli)
  G3
  develop
  master
Lenovo@DESKTOP-OMKC0JH MINGW64 /d/test/develop/saas-service-impl ((xiaoli))
$ git commit -m "小风"
[detached HEAD 8300bf4] 小风
 1 file changed, 1 insertion(+)


Lenovo@DESKTOP-OMKC0JH MINGW64 /d/test/develop/saas-service-impl ((8300bf4...))
$ git checkout -b xiaofeng
Switched to a new branch 'xiaofeng'


Lenovo@DESKTOP-OMKC0JH MINGW64 /d/test/develop/saas-service-impl (xiaofeng)
$ git branch -a
  G3
* develop
  master
  xiaofeng

相关文章

  • Git 删除远程 tag 防止恢复

    git tag 标签简介 1、git tag --list 列出所有的标签 2、git tag

  • git tag使用

    查看标签 git tag 创建标签 git tag 标签名字 -m '消息内容'git tag -a crm-1....

  • GIt命令行

    一、Tag git tag 打印所有标签 git tag v1.0 -light 创建轻量级标签 git tag ...

  • git-tag

    git tag 在当前层打标签git tag 查询所有标签git tag

  • GitLab 打tag

    查看标签 git tag 创建标签 git tag 标签名字 -m '消息内容' 推送标签 git push or...

  • Git命令(5)

    显示已有标签 git tag 新建标签 git tag -a tagname -m "message" 删除标签 ...

  • (翻译)git 标签功能(tag)

    (翻译)git 标签功能(tag) 标签功能 本文将讨论Git标签的概念和git tag命令。标签是指向Git历史...

  • tag

    1、查看分支tag git tag 或者 git tag -l 2、打标签 git tag name ...

  • git 使用

    1.打标签 查看标签 git tag 打标签 git tag -a amc_1.0.0 -m '这是一个tag' ...

  • Git 使用简记

    git 标签 添加标签git tag ,例:git tag v1.0 添加带有说明的标签git...

网友评论

    本文标题:GIT 标签tag

    本文链接:https://www.haomeiwen.com/subject/veknmctx.html