How to download single file from Bitbucket repository
Bitbucket repository files can be fetched to local system through cloning. But cloning the entire repository to get a single file is very time consuming.
There is an alternate way to download single file from Bitbucket repository using curl command.
#curl --digest --user <username>:<password> https://bitbucket.org/<account>/<repo-name>/raw/<branch>/<filename> -o filename
Here we need to specify the details like username, password, account, repo-name, branch and filename accordingly.
If the repository is open to public, user authentication part is not required.
That's all…