英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论