Need to understand the Publish/Deploy in VBCS
Summary:
The "main" branch always contains the most up-to-date, stable version of your application that is ready for deployment or use by others.
While "main" is the primary branch, developers will often work in separate branches to isolate changes and new features. After development and testing in these branches, the changes are then merged into the "main" branch.
Code is merged into the main branch automatically from a release branch after a successful deployment from the release pipeline
The release branch with isolated changes is also a mirror of the main branch with these isolated changes
When we publish this release branch in the same instance or deploy this branch to the production, the "main" of the production or the main of teh current instance when we publish will be overwritten by this action