Forums

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

I want to commit or add file to bit bucket repository branch

Deleted user September 7, 2018

Is there any API to create branch in repository  and commit changes or add files to repository.

1 answer

0 votes
DivyangD September 14, 2018

Yes, you can create a branch using API 2.0 as following

https://api.bitbucket.org/2.0/repositories/{repo_slug}/src/ --F "parents={parent_hash}" --F "branch={branch_name}"

 Here is the documentation of API

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events