diff --git a/modules/git/README.md b/modules/git/README.md index bd67f712..6bc8429e 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -288,6 +288,11 @@ zstyle ':prezto:module:git:alias' skip 'yes' - `gSu` fetches and merges the latest changes for all submodule. - `gSx` removes a submodule. +### Tag + + - `gt` lists tags or creates tag. + - `gtl` lists tags matching pattern. + ### Working directory - `gws` displays working-tree status in the short format. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 4a5789fe..a54a2e08 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -250,6 +250,10 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then alias gSu='git submodule foreach git pull origin master' alias gSx='git-submodule-remove' + # Tag (t) + alias gt='git tag' + alias gtl='git tag -l' + # Working Copy (w) alias gws='git status --ignore-submodules=${_git_status_ignore_submodules} --short' alias gwS='git status --ignore-submodules=${_git_status_ignore_submodules}'