Gitlab发布和补丁

huangapple go评论62阅读模式
英文:

Gitlab Releases and Patches

问题

Gitlab中的发布功能看起来不错,但我找不到关于如何在后续修补发布并将更改集成回主分支的文档。

我知道它会为主分支打标签,这是吗?

英文:

The release functionality in Gitlab seems nice, but I cannot find any documents on how you can patch a release down the line (and integrate the changes back into the main branch)

I know it tags the main branch, is this how?

答案1

得分: 1

一个GitLab发布允许您为您的用户创建项目的快照,包括安装包和发布说明。您可以在任何分支上创建GitLab发布。创建发布还会创建一个Git标记,用于标记源代码中的发布点。

修补发布实质上是修复已发布版本的错误或添加增强功能。理想情况下,您应该创建一个单独的分支来准备/编写该路径,然后创建一个合并请求将修补分支合并回原始发布的分支。

从那里,一旦MR(合并请求)被接受,您可以创建一个标签和一个新的发布。

您还可以对相同的更改进行MR,合并回主分支。

英文:

A GitLab release enables you to create a snapshot of your project for your users, including installation packages and release notes. You can create a GitLab release on any branch. Creating a release also creates a Git tag to mark the release point in the source code.

Patching a release is essentially fixing bugs or adding enhancements to an already released version of the code.
Ideally, you would create a separate branch to prepare/code that path, then create a merge request to merge the patch branch back into the branch from your original release.

From there, you can create a tag, and a new release, once the MR (Merge Request) was accepted.

You can also do an MR of the same changes back to main.

huangapple
  • 本文由 发表于 2023年6月22日 01:32:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76525846.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定