git flow branches have diverged
What happens here is that the remote has received updates, and git-flow requires that develop
and origin/develop
to be at the same commit before merging back the feature. This is to prevent bad conflicts when publishing the branch.
To solve this, you need to:
sync your local
develop
withorigin
: checkoutdevelop
, and pull fromorigin
todevelop
(git checkout develop && git pull origin
)rebase your feature on
develop
withgit flow feature rebase showFindLogs
. You may have conflicts here if you're unluckycheck that it doesn't break anything
git flow feature finish showFindLogs
Make sure your develop
branch is not behind origin, maybe you need to perform
git checkout develop
git pull
git checkout release/x.x.x
And continue the release process
you might also want to ((as long it is not officially supported) patch and) use my
git-flow feature finish -p
option
https://github.com/nvie/gitflow/pull/253
All i had to do was:
git checkout develop
git pull origin develop
git checkout feature/your_feature_name
git flow finish