Forums

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

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

roja k
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!
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
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events