We have 5 developers in a team submitting pull requests regularly (daily) to master branch of a single repo. Typical workflow is like this:
- Clone repo from server
- Create local feature branch from master branch
- Make changes, commit, iterate until done
- Rebase onto master branch (squash commits)
- Push to server
- Submit pull request
The problem is that if multiple developers submit pull requests, only 1 of them can be successfully merged into master branch. Once that is done, all others fail because master branch is ahead of the feature branches. Then all devs must again rebase and push. Then only 1 can be merged and the rest fail. Iterate until all PRs are merged.
There must be a better way, right?