How to download a branch or tag from bitbucket server using command line. To download the Bitbucket branch/tag as zip file from command line. Do the following steps:
Step 1: Login to your server
Step 2: Copy the below line and change the Username, download zip url as mentioned below.
[code language=”php”]curl –user #username# -L -O https://bitbucket.org/#team_name#/#repo_name#/get/ [/code]
You need to replace ## value with correct details and it will look like as below:
[code language=”php”]curl –user chandanavyatech -L -O https://bitbucket.org/avyatech/wp-dev/get/3ec81d47abe4.zip[/code]
Step 3: Press Enter and it will ask for password (bitbucket login password).
Step 4: Once you enter the correct password it will start download the zip file.