In this tutorial we will find out the procedure to download code from Git Repository on local system from your bitbucket account. If you are trying to create new bitbucket repository then you can check this post: How to Create BitBucket Repository.
Steps to Clone Repository from BitBucket Using GitBash on localhost:
Step 1: First create a new folder on your local system in which you want to clone git repository from bitbucket. I have create folder with the name PincodeProject inside d drive.
Step 2: Open GitBash as shown in diagram below:
Step 3: In gitbash change the drive to d which contain the folder for cloning the repo as shown in the diagram below:
Step 4: Now change to folder in which you want to clone the git repository. In this example I have created PincodeProject folder as shown in the picture below:
Step 5: Now use git init command to initialize folder as shown below in picture:
Step 6: Now login to your bitbucket account. If you don't have bitbucket account then follow this link create bitbucket account. Open the repository whose clone you want to take as shown in the diargram below:
Step 7: Click on Clone after opening the repository and then copy the clone url as shown in the diagram below:
Step 8: Now paste the copied url in Git Bash Command line by right clicking on to top of GitBash command line window as shown in the picture below:
Step 9: Now enter bitbucket account login password to complete the clone process as shown in the diagram below:
Finally the project will be cloned on your local system from bitbucket using GitBash as you can see below: