[Other doc versions]
[Doc downloads]
Branch permissions allow you to control the actions users can perform on a single branch, branch type, or branch pattern within a repository. Branch permissions provide another level of security within Stash, along with user authentication and project, repository and global permissions, that together allow you to control, or enforce, your own workflow or process.
Branch permissions:
For example, if two developers Xavier and Yves have write access to repository R, but only Xavier has branch permissions on branch B, then Yves won't be able to push to B.
If a user does not have commit access to the branch, an error message will be shown on the Git command line when they try to push a change to the branch. If no branch permissions are defined then anyone with commit access to the repository can push to any branch.
Branch permissions in Stash control access to repository branches. You need either project admin, admin or sys-admin permissions to set or modify branch permissions.
To add branch permissions:
Click Create to finish.
You can always change the permissions for a branch later, if necessary.