Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i set clone permissions

GodSvarog November 3, 2021

hello everybody.

i need my employees to make only:

git clone --branch=first --depth=1 https://GodSvarog@bitbucket.org/Alex_Svar/sandbox.git

but not

git clone https://GodSvarog@bitbucket.org/Alex_Svar/sandbox.git 

 

how can i set permissions on clone operations for my employees?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2021

Hi @GodSvarog,

I'm afraid that it is not possible to enforce this. If a user has at least read access to a repository, they get access to all branches and they can clone either the entire repo or a certain branch only.

You can prevent certain users from pushing to certain branches with branch permissions, but it is not possible to enforce what type of clone they will make.

Kind regards,
Theodora

GodSvarog November 6, 2021

i thank you for reply.

i had already found a solution. i need just to make other repository and push to it necessary branch.

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2021

Thank you for the update, I'm glad you found a way around this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events