We are merging feature-branch -> release-branch.
We accidentally pushed a commit to release-branch instead of feature-branch.
How can we move the commit over to feature-branch and out of release-branch while at the same time allowing us to continually make changes to feature-branch and eventually merge it all properly down to release-branch?
We could do:
git checkout feature-branch
git merge release-branch
git checkout release-branch
git reset --hard HEAD~1
But how can you make changes to feature-branch and then do a merge down to release-branch which pulls down the original commit and changes into release-branch?
Can you do this?
git checkout feature-branch
//Make changes to feature-branch
git checkout release-branch
git merge feature-branch