Reputation: 741
I have a problem.
Is it possible? Can you please help me when I merge it is also picking up the changes from F1 to merge to MASTER.
Upvotes: 0
Views: 1084
Reputation: 37712
Yes, as long as you didn't have conflicts to resolve when merging F2 into DEV:
on master
branch run git merge F2
, since as you describe it, that branch would contain all F2 developments, but not F1. If the branch F2 does not exist anymore, you can replace it with the hash of the commit where F2 pointed to before merging into dev: git merge <last-f2-commit>
No, as different developments (F1, F2) will sooner or later interact with one another, and so you are moving to production a code that has not been tested as such: F1+F2 has been tested, F2 alone has not.
Feature toggles (or feature flags) might be a good approach here: allowing you to "disable F1" for production. This would also allow your testers to test "F2 only" before going into production. This will also allow you to move further, allowing some refactoring etc.
Upvotes: 2