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?
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
i thank you for reply.
i had already found a solution. i need just to make other repository and push to it necessary branch.
Thank you for the update, I'm glad you found a way around this.
It looks like you're new here. Sign in or register to get started.