gpt4 book ai didi

git - 你应该为ctags使用版本控制吗?

转载 作者:行者123 更新时间:2023-12-01 13:29:40 28 4
gpt4 key购买 nike

我刚刚用 vim 和 ctags 设置了一个项目。 ctags 属于我的版本控制吗?

谢谢。

最佳答案

不,你不应该,(如 jthill 所说)因为这是你从源代码构建/生成的文件。

要添加到jthill评论,您可以在“Supercharge your VIM into IDE with CTags”中找到完整的配置示例

ctags 生成标签(所有类的索引文件)

ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)

但是 .gitignore 总是会忽略那些生成的标签。

因为你不想将这些文件提交到 GIT 索引中,所以将它们添加到 .gitignore 或者我想将它们添加到我的全局 ~/.gitignore .

$ cat <<EOT >> ~/.gitignore
tags
gems.tags
EOT

参见 github/gitignore/Global/Tags.gitignore .

关于git - 你应该为ctags使用版本控制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46625412/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com