Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to create repository with readme/some empty file using the create repo api

roja k March 16, 2022

I was trying to create a repository with the api

curl -X POST -H "Content-Type:application/json" "https://api.bitbucket.org/2.0/repositories/{workspace}/{reponame} --data '{
"scm": "git",
"project": {
"key": "PROJ"}}

But also need an empty file/readme file/gitignore file to be created as part of it or atleast is there any other api that can be used to add readme file.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events