I have a base repository in Bitbucket project and I need to create new repository based on this base repository using REST API. The new repository has to contain all the files from the base repository.
How can I do do it?
I have a base repository in Bitbucket project and I need to create new repository based on this base repository using REST API. The new repository has to contain all the files from the base repository.
How can I do do it?
The way to do it is by forking the repository this way:
{
"slug": "URL_FRIENDLY_NAME",
"name": "NEW_REPO_NAME",
"project": {
"key": "PROJECT_NAME"
}
}