We have a standard web project and support 3 main branches for this project: Master, Beta and Develop. The following is a brief overview of the process / workflow that we use:
(1) A new feature / update was requested, so we create a new Feature branch.
(2) Committing is performed for the new Feature branch, and the Feature branch is in the "Develop" branch; the Develop branch is then published in a test environment that needs to be tested.
(3) After the new function is tested / approved, a new pull request is added to the same Feature branch; This new migration request is for merging into the Beta branch.
The Beta branch has all of our "ready-to-live" functions: in fact, we publish the Beta branch directly in the production environment, and when it is ready, we will immediately merge the beta branch into the Master branch ... . doing this, the branch "Master" is always a copy of the code that is in the working environment.
Problem: In step 3 above, when we try to merge the new Feature branch into the Beta branch, the transfer request includes ALL new commits that have been merged into the Develop branch.
Example: 5 function branches are individually combined with the "Develop" branch (branches are designated 1, 2, 3, 4, and 5). All 5 are tested, but there are errors with the first 4. So, the "5" branch is approved, and we are trying to create a transfer request for this Feature branch and merge it with "Beta" .... but when we do this, a pull request includes all 5 branches of functions ... not just commit for branch "5".
WE SHOULD do something wrong! What can we do to fix our process / workflow?
git merge github
Kris
source share