I am new to Git and I'm trying to figure out what the best workflow is when dealing with multiple branches that use the same files. The workflow at the office is pretty much to create a new branch for each ticket that comes in. My biggest concern is that when these branches merge to stage and production that all of the changes are implemented.
Example
Lets say I create branchA from production. I then modify app.js and put a pull request to the QA branch.
Now I create a new branch from production called branchB. I then modify app.js and put a pull request to the QA branch.
branchB does not have the changes that were made in branchA.
I feel that if I continue this workflow I will always be in a conflicted state.
What's the best way to work on separate branches, that will be modifying a lot of the same files, and make sure that when they are merged into QA that they contain the latest code?
Thanks for the help.