Forums

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

How to commit and push changes to bitbucket snippets?

Viddesh Shinde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2018

I created a Bitbucket snippet and cloned it in my existing project. I made some changes to that file and now I want to push the changes to snippet using git. How can I do this from a command line? 

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2018

Hi @Viddesh Shinde

Snippets are built on Git/Mercurial hence you can use  Git command  for commit and push the changes.

but 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 master before pushing changes. Trying to push a branch other than master will fail.

Viddesh Shinde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2018

when i try to push using git commands it goes to my main repo of project and not to the snippet

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events