简体   繁体   English

在gsh中为git checkout命令禁用标签的自动完成?

[英]Disable auto-completion of tags in Zsh for git checkout command?

I have a repository with a lot of tags. 我有一个包含大量标签的存储库。 How can I disable completion to it for git checkout command 如何禁用git checkout命令的完成

This could helps, put these lines to your .zshrc file: 这可能会有所帮助,将这些行放到您的.zshrc文件中:

zstyle ':completion::complete:git-checkout:argument-rest:commit-tag-refs' command "echo"
zstyle ':completion::complete:git-checkout:argument-rest:blob-tag-refs' command "echo"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM