I searched a lot but was not able to find a confident solution(pardon me as I am new to git and maybe I didn't get some term well). So I will state my exact problem here:
I have a software (say in branch main) of which I just released v5.0 and then I created a new branch (say 5b) to fix all the issues that come in the branch.
All the new features are being added to main branch.
Now I have to supply a build with the new features to someone, but I also want to have all the bugfixes.
My logic says that I can pull all the changes from 5b, merge it with main and make a build.
The only problem is that I want to keep that branch 5b as it is so that other fixes can be added to it. While in the main, all the changes from 5b should be available.
Please let me know how to accomplish this. A step wise answer with a bit of detail will be really helpful.
Thanks,