The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
We are working on creation of release and hotbranch. During which we were able to successfully able to create a new release version (0.0.1) using command "mvn gitflow:release-start" and later finished the release branch using "mvn gitflow:release-finish".
But later when we were able to create a new release branch for version (0.1.0), using command "mvn gitflow:release-start" , and try to finish the branch creation using "mvn gitflow:release-finish", it fails with error
"Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.15.0:release-finish (default-cli) on project mytest release-finish: More than one remote release branch exists. Cannot finish release"
Dears,
We are working on creation of release and hotbranch. During which we were able to successfully able to create a new release version (0.0.1) using command "mvn gitflow:release-start" and later finished the release branch using "mvn gitflow:release-finish".
But later when we were able to create a new release branch for version (0.1.0), using command "mvn gitflow:release-start" , and try to finish the branch creation using "mvn gitflow:release-finish", it fails with error "Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.15.0:release-finish (default-cli) on project mytest release-finish: More than one remote release branch exists. Cannot finish release"
[INFO] Checking for uncommitted changes. [DEBUG] git diff --no-ext-diff --ignore-submodules --quiet --exit-code [DEBUG] git diff-index --cached --quiet --ignore-submodules HEAD -- [DEBUG] git for-each-ref --format="%(refname:short)" refs/heads/release/TM- [INFO] Fetching remote branch 'origin '. [DEBUG] git fetch --quiet origin [DEBUG] git for-each-ref --format="%(refname:short)" refs/remotes/origin/release/mytest- "origin/release/mytest-0.0.1" "origin/release/mytest-0.1.0"
Ideally,
Could you please help us in achieving the same? Please let know if more information is required.
Configuration of the plugin.
`