I do not have a local repo on my machine and I want to download a single file from remote repo from a specific branch. Think of this as an equivalent of git archive command.
I am trying to achieve this using the following:
I have added my PUB key on the bitbucket account under SSH key. If I run the following command I get Forbidden error on the terminal.
curl -s -L https://api.bitbucket.org/2.0/repositories/apurva_sharma_repo/testingapi/downloads/testing.txt
If I use Postman to make this call with basic auth in header I get 404 Not Found and response body as
{
"type": "error",
"error": {
"message": "testing.txt"
}
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.