Milind Anantwar Milind Anantwar -4 years ago 62
Git Question

Prevent merging branch in master if behind by commits

Is there any way to prevent merging the branch into master if its behind by any commits?

Answer Source

You are after the --ff-only parameter which only allows merges if they are fast-forward and thus do not have any commits in the merge target that are not yet in the merge source.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download