Merge strategies
Last updated
Last updated
Agree if you want a linear or non-linear commit history. There are pros and cons to both approaches:
Pro linear:
Con linear:
Merging topic
into main
Before merging topic
into main
, we rebase topic
with the main
branch:
Create a PR topic --> main in Azure DevOps and approve using the squash merge option
Create a PR topic --> main in Azure DevOps and approve using the squash merge option
is a merge option that allows you to condense the Git history of topic branches when you complete a pull request. Instead of adding each commit on topic
to the history of main
, a squash merge takes all the file changes and adds them to a single new commit on main
.