How to lock a BRANCH in GIT repository

Hi,

What is the way, by which I can lock a given BRANCH as and when required. I prefer to have this lock on the GIT repository side, instead of having it on client side.

Example: If I am foollowing thr GITFlow workflow then, how can I prevent developrs from making any commit on "Production Branch".

regards,

Chandra

1 answer

0 vote

I guess if you are using Stash, you may set a Branch permission to only selected user. https://confluence.atlassian.com/display/STASH/Using+branch+permissions

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Rachel Wright
Published yesterday in Training & Certification

How to Extend your Jira Administrator Certification

...; didn’t   know about Jira email!  For example, did you know Jira will try to send a notification message 10 times?  I didn’t!  As soon as I learned that, I searched for any active...

87 views 2 10
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