If I have the typical scenario of a feature branch I'm committing to locally and the remote master
branch changes during this time, I like to rebase my feature branch before merging it back into master
.
Is there a way to configure the Git repo so that it detects if my feature branch and master
branch don't have the same history (i.e. - I didn't rebase) and it will automatically reject my attempt to merge the feature branch back into the master
branch?
Thanks!