Consider a remote branch that requires a pull request before changes can be pushed to it. Assume a team member pushes to this remote branch anyway. Under what circumstances does the team member see a message saying that the push
was rejected (because the remote branch is protected), and under what circumstances does the team member gets no rejection during the push
?
Note. I understand that in the latter case, the user will see a Compare & pull request button in their GitHub profile. So the fact that their push
does not get rejected does not mean that the remote is updated with the local changes.