Set repository privacy and forking options
When you create a Bitbucket Cloud repository, you specify whether it's private or public, but you can also change this setting at any time.
If your repository is public, anyone can access and fork it.
If your repository is private, you can specify who exactly can access your repository and whether they can fork it.
Set repository privacy status
A private repository is visible only to users who have permission to see it. A public repository is visible to everyone.
Next to the name of your repository in the left sidebar, select More actions (…), and then select Settings.
Locate Access level on the Repository details page. Add or remove the checkmark from This is a private repository based on your preferred privacy status.
Select Save repository details.
Set forking permissions
Forking permissions allow you to specify whether and how a user can fork your repository. Because public repositories allow public forks, you must make your repository private to restrict forking.
Next to the name of your repository in the left sidebar, select More actions (…), and then select Settings.
From the Repository details page, if you don't see the Forking option, select This is a private repository.
From the Forking dropdown, select one of the following options:
Allow forks—Users can fork the repository and those forks can be public.
Allow only private forks—Users can fork the repository and those forks will be private.
No forks—Users can't fork the repository.
Select Save repository details.
Workspace forking policy enabled
If the workspace administrator has set the forking policy to prevent forking outside of the workspace then Allow forks will not be an available option. The forking policy set at the workspace level has precedence over the repository settings.
Note: If Allow forks is enabled on repositories when a workspace admin enables the new forking policy, you will be prompted to update this forking option and the Allow forks option will no longer be available.
Was this helpful?