How to reject force pushes to all except one match?

We have a global rule in 'Reject Force Pushes to Branch' hook to reject force pushes to all branches matching

release/**

 

I would like to make an exception to 'release/2.0.0' branch. 

 

How can I acheive this?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published an hour ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

16 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you