git中的快照标识符?

发布于 2025-01-31 08:58:17 字数 142 浏览 1 评论 0原文

我有点困惑。有没有办法放下一些专用的快照,在git的分支上标签?我知道,每个提交都是快照,但是您仍然希望一些标签可以轻松地识别源代码,从而构建0.9.1,对吗?

换句话说:在某些情况下,您可能需要下载属于SW的某个版本的代码库。您如何找到要下载的合适快照?

I'm a bit confused. Is there a way to put down some dedicated snapshots, labels on a branch in git? I know, every commit is snapshot, but you would still want some label easily identifying the source code resulting build 0.9.1, right?

In other words: in some cases you might want to download a codebase belonging to a certain version of a SW. How do you find the right snapshot to download?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2025-02-07 08:58:17

我建议您在创建链接到某些功能的特定代码期间使用git标签

您可以在 https://www.atlassian .com/git/tutorials/Inspecting-a-repository/git-tag https://git-scm.com/book/en/v2/git-basics-tagging

I would suggest that you use git tag during the creation of specific code that is linked to some feature.

You can read more about this at https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-tag and https://git-scm.com/book/en/v2/Git-Basics-Tagging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文