3 ms·
Using squash-merge doesn't mean that you can't use long-lived feature branches if that's something that you need for whatever reason. It just means that you ba
by tharkun__ 6y ago
Using squash-merge doesn't mean that you can't use long-lived feature branches if that's something that you need for whatever reason.
It just means that you basically have a multi-stage squash merge strategy. We do this from time to time. We only allow rebased squash-merge to master. When we do have a long-lived feature branch for something then this feature branch basically becomes the master for the individual ticket branches and at the end, the feature branch is rebased onto master and merged as a fast forward. It can result in 50 commits appearing on master all at once but each of those commits is an individual small commit just as if they had been done directly with master and the squash-merge strategy. We rebase this feature branch on master very regularly too (once per sprint actually) to keep up to date with master. We also try not to do any long lived feature branches in the first place.