Comments (3)
You need to make sure the merge to master isn't a fast forward. Ie use the --no-ff switch
Sent from my iPhone
On 4 dec 2013, at 16:55, Scott Meyer [email protected] wrote:
I'm trying to work out the exact workflow to establish a stable version using GitFlowVersion.
When adding GitFlowVersion to an existing repository already using GitFlow, I have a master branch and a develop branch. In order to start with GitFlowVersion, I add GitFlowVersion to develop branch and commit. Then, branch to release-1.0.0 and tag the commit release-1.0.0-alpha1. This sets the AssemblyVersion to 1.0.0.0 and the ProductVersion to 1.0.0-alpha1{etc}. At this point, GitFlowVersion seems happy.
How to I properly apply the 1.0.0 version to master at this point?
From the documentation, I would think this should properly apply the 1.0.0 version on the master HEAD:
c:\repos\example (release-1.0.0) > git checkout master
c:\repos\example (master)> git merge release-1.0.0
Fast-forward...c:\repos\example (master)>
However, when I compile, I get an error that the head of master should be a merge commit or tag. My understanding is that it is currently a merge commit.If I then do the following (continued from above):
c:\repos\example (master)> git tag -a 1.0.0 -m "Added GitFlowVersion"
I can compile and get the 1.0.0 version I expect. Can someone help point out the holes I have here, as I assume this isn't exactly the correct workflow. Am I required to do a pull request from release-1.0.0 to master in order for GitFlowVersion to find the right version?—
Reply to this email directly or view it on GitHub.
from gitversion.
Thanks for the clarification. That worked out.
from gitversion.
This can be closed.
from gitversion.
Related Issues (20)
- [Improvement]: Rename TrunkBased Version Strategy to Mainline HOT 1
- [Improvement]: Create TaggedSemanticVersionService class HOT 1
- [ISSUE]: gitversion/execute@1 task uses branch from wrong repository
- [Improvement]: Finalizing the configuration of GitFlow and GitHubFlow workflow and align with the Mainline version strategy HOT 1
- [ISSUE]: n unexpected error occurred: LibGit2Sharp.LibGit2SharpException: No error message has been provided by the native library HOT 2
- [BUG]: GitVersion (in Azure Devops) calculating wrong version when building a tag HOT 9
- Verifies the contents of `configuration.md` against the default serialized configuration
- [ISSUE]: Regex Capture Groups don't work correctly on release branch. HOT 3
- gitversion from container image default behaviour differs from other installation methods HOT 5
- [Documentation]: Documenting the GitFlow workflow and create sequence diagrams HOT 1
- [ISSUE]: Gitversion failing in teamcity run configuration HOT 1
- [ISSUE]: Can't make GitVersion work in conjunction with WiX Toolset 4.0/5.0 HOT 3
- Forced push breaks GitVersion
- [ISSUE]: GitVersion AzDo task appears to be stuck at version 5.0.1 HOT 1
- [ISSUE]: Plan Migration to .NET 7.0+ SDK HOT 1
- [ISSUE]: NotImplementedException in TrunkBased-Workflow HOT 1
- [Feature]: Support of multi mainline branches in the Mainline version strategy
- [ISSUE]: Unable to get Main branch to update WeightedPreReleaseNumber HOT 1
- [ISSUE]: `init` command still shown in the help output HOT 2
- [Documentation]: Documenting the GitHubFlow workflow and create sequence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitversion.