Snippets overview
Was this helpful?
Snippet owner
Setting
Who can view
Who can edit
Workspace
Public
Anyone can view the snippet.
Any member of the workspace can edit the snippet.
To allow a new person to contribute to snippets you can add them to your workspace.
Private
Only workspace members can view the snippet.
Clone your snippet so you can work on it locally and push back up to Bitbucket Cloud.
Select Snippets from the left nav menu.
Select the title of the 'snippet' you want to clone.
Click the Clone button in the upper-right corner of the Snippets page.
Switch to the directory where you want to clone the snippet using the cd
(change directory) command as shown in the following example:
cd path/to/directory
Paste the clone link into your terminal.
Start working on your snippet.
You cannot push branches for your snippet. Once you've cloned the snippet to your local system you can use branching locally but must always merge into your main branch before pushing changes. Trying to push a branch other than your main branch will fail.
Was this helpful?