This happens to me from time to time; I want to create a release branch off of my develop branch, but I've already fetched the latest commits from origin (not merged the commits, just fetched them). My commit chain can look like this:
a--b--c(develop, HEAD)--d(origin/develop)
I can view the "d" commit made by another developer and know that I don't want to include it in the new release, so I keep my repo checked out at the "c" commit and try to create a release branch. What I want is:
a--b--c(develop)--d(origin/develop)
\
--e(release/1.1,HEAD)
But when I run git flow release start 1.1
, it fails:
Branches 'develop' and 'origin/develop' have diverged. Fatal: And branch 'develop' may be fast-forwarded.
As far as I can tell I can't force the git flow release start
to create the release branch, or target which commit to use as the base for the release branch. What are my options here?
Thanks, Dan