Fairly new to Git and a standard Git-Flow. Looking for a bit of advice on a particular scenario:
We create a feature branch off the develop branch (Feature1) and finish the feature. This 'finish' merges the feature back in to develop.
A new feature (Feature2) is created by somebody else off the develop branch, which will contain the code from finished Feature1.
A release is created from the develop branch, containing the code from Feature1.
A bug is then found in Feature1 so an amend is made inside the release branch to fix the bug.
How do we ensure that the code contained in the Feature2 branch reflects the fixed, bug free code from the Feature1 branch, to ensure we don't push buggy code back in to development when we finish Feature2?