Hello, I have an existing repo and would like to add an entire directory to it.
I am following this from the docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post
I am successfully able to add a single file with the following request:
Hey Andre,
Unfortunately, wget/cURL does not have the concept of what a "folder" is in this context.
They can be used to upload individual files as you have stated - but they are unable to upload entire folders in a singular command.
You would need to write a bash script to cycle through each individual file in that directory to achieve what you wish to do.
Cheers!
- Ben (Bitbucket Cloud Support)
Hi Andre,
first thing that comes to mind is to use git add, git commit and git push to add a directory to a BB repository. The commands can run as a script if you need to automate. However I'm not sure about your specific use-case.
Best, Ulrich
// Izymes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.