我正在努力理解GitVersion是如何工作的。这里有一个“gitversion/showconfig”的片段
branches:
develop:
mode: ContinuousDeployment
main:
mode: ContinuousDelivery
hotfix:
mode: ContinuousDelivery
...在发布版本/1.1之后,我的git处于以下状态:
现在,我尝试在生产中模拟1.1.0版的修补程序。
> git checkout master
> gitversion /showvariable FullSemVer
1.1.0
> git checkout -b fix/1.1
> gitversion /showvariable FullSemVer
1.1.0
> Add-Content -Name EmptyFile7.txt -Value 'Correction'
> git add --all; git commit -m "fix(gitversion): modified EmptyFile7.txt"
> gitversion /showvariable FullSemVer
1.2.0-fix-1-1.1+1我期望1.1.1-修正-.现在我不知道怎么给这个补丁贴标签了。
例如,这是对的吗?
> git checkout master
> git merge hotfix/1.1
> git tag 1.1.1我是否应该以开发/发布的方式,而不是以错误的方式来处理这一切呢?
里卡多
发布于 2022-07-01 15:51:33
右边的分支是修补程序,而不是修复。
> git checkout master
> gitversion /showvariable FullSemVer
1.1.0
> git checkout -b hotfix/1.1.1
# Fix
> Add-Content -Path EmptyFile7.txt -Value 'Correction'
> git add --all; git commit -m "fix(gitversion): modified EmptyFile7.txt"
> gitversion /showvariable FullSemVer
1.1.1-beta.1+1 现在我可以切换到掌握并批准修补程序。
> git checkout master
> git merge hotfix/1.1.1
> git tag 1.1.1并最终合并回去发展
> git checkout develop
> git merge hotfix/1.1.1https://stackoverflow.com/questions/72813691
复制相似问题