Github “Branch name pattern” negation

GitHub uses fnmatch to match against any pattern provided to find out the branches to which the rule applies for branch protection.

There isn’t an exact fnmatch pattern for GitHub yet which can resolve to precisely anything other than master, but the pattern closest to it would be:

*[!master]*

But this would also exclude branches with only m,a,s,t,e,r or branches with only a combination of those letters.

Check out more details on the above on GitHub help and the fnmatch documentation

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)