Skip to main content

Understanding the "Reset Branch before every commit" Option in Copado Essentials

Written by Ariel Ridley
Updated over a week ago

The "Reset Branch before every commit" option in Copado Essentials controls branch reset behavior before each commit. By default, this option is checked for day-to-day deployment requests, because it is the more common use case where users need the feature branch to be completely up-to-date with the base branch.

It is recommended to keep this default value checked. However, for users who need to control this behavior, such as using long-running branches (i.e. branches with ongoing changes that span multiple days, weeks, etc. at a time), this option can be unchecked, and Essentials will commit incrementally instead (without resetting the branch).

Note: When unchecking the "Reset Branch before every commit" option, the feature branch might diverge from the base branch (since Essentials no longer resets it after each commit).

However, if this happens, users can manually update the feature branch (i.e. using git command) if there is a need to keep the feature branch up-to-date with the base branch.

Did this answer your question?