Re:Help: How to prevent Main from getting ahead of Develop?
by HelloNurse on Friday March 26, 2021 @10:29AM
(#26592574)
Git branches are only "ahead" (or not) of a certain commit, not of another branch.
Do you mean that you want to prevent the HEAD of your "main" branch from being a successor of the HEAD of the "develop" branch? Since it is always possible to put any commit you want in any branch, fixing incorrect situations with the worst case damage of keeping around mistaken commits that have been pushed to a shared repository, what would be the point?
[ Parent
| on HN ]