我可以将元数据添加到git提交吗?或者我可以在gitk中隐藏一些标签

编程入门 行业动态 更新时间:2024-10-06 06:44:41
本文介绍了我可以将元数据添加到git提交吗?或者我可以在gitk中隐藏一些标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将自定义元数据与 git commit 关联。特别是要从代码评论中记录评论ID,但它可能是任何内容。标签似乎是一种很自然的方式,但我希望对每一次提交都有一个评论,而且我不想用大量标签来混乱 gitk 。是否有其他一些机制来添加自定义元数据?我可以让某些标签隐形吗?如果我可以告诉 gitk 不要显示匹配某种模式或RE的标签,那可能会起作用,但我没有办法做到这一点。

I want to associate custom metadata with a git commit. Specifically to record a review ID from a code review but it could be anything. Tags seem a natural way to do that but I expect to have a review for every commit and I don't want to clutter gitk with tons of tags. Is there some other mechanism to add custom metadata? Can I make certain tags invisible? If I could tell gitk not to display tags matching some pattern or RE, that would likely work but I don't see a way to do that.

推荐答案

这正是 git便笺适用于。

更多推荐

我可以将元数据添加到git提交吗?或者我可以在gitk中隐藏一些标签

本文发布于:2023-11-02 06:25:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   数据   git   gitk

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!