浏览代码

feat(git): add tag aliases `gt` and `gta` (#11910)

Co-authored-by: hasecilu <hasecilu@protonmail.com>
Co-authored-by: Rik <gitaarik@posteo.net>
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Adam Johnson 1 年之前
父节点
当前提交
e2b855341b
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      plugins/git/README.md
  2. 2 0
      plugins/git/git.plugin.zsh

+ 2 - 0
plugins/git/README.md

@@ -197,6 +197,8 @@ plugins=(... git)
 | `gswc`                 | `git switch -c`                                                                                                                                                     |
 | `gswd`                 | `git switch $(git_develop_branch)`                                                                                                                                  |
 | `gswm`                 | `git switch $(git_main_branch)`                                                                                                                                     |
+| `gt`                   | `git tag`                                                                                                                                                           |
+| `gta`                  | `git tag --annotate`                                                                                                                                                |
 | `gts`                  | `git tag -s`                                                                                                                                                        |
 | `gtv`                  | `git tag \| sort -V`                                                                                                                                                |
 | `gignore`              | `git update-index --assume-unchanged`                                                                                                                               |

+ 2 - 0
plugins/git/git.plugin.zsh

@@ -345,6 +345,8 @@ alias gsw='git switch'
 alias gswc='git switch --create'
 alias gswd='git switch $(git_develop_branch)'
 alias gswm='git switch $(git_main_branch)'
+alias gt='git tag'
+alias gta='git tag --annotate'
 alias gts='git tag --sign'
 alias gtv='git tag | sort -V'
 alias gignore='git update-index --assume-unchanged'