We would like to enforce a policy in our git repositories so that master
must be merged/rebased (let's ignore merge vs rebase for now) to feature
branches before creating pull requests.
The reason we'd like to have this policy is to force developers to consider functionality added in other feature branches and to reduce merge conflicts later.
Is this something typically done in a development team and what tools (git-hook?, functionality in a specific CI tool?) do you use for that purpose?