-2

I following this instruction because of this problem

Here's the code

nabih@cloudaws-1:~$ git clone https://git@bitbucket.org:company_name/backend_service.git/

Here's the output

Cloning into 'backend_service'...
fatal: unable to access 'https://bitbucket.org:company_name/backend_service.git/': URL using bad/illegal format or missing URL
slugolicious
  • 15,824
  • 2
  • 29
  • 43
Nabih Bawazir
  • 6,381
  • 7
  • 37
  • 70

1 Answers1

2

Check the URL: Double-check the URL you provided for the Bitbucket repository. Make sure it is correct and follows the proper format. The correct format should resemble https://bitbucket.org/<username>/<repository_name>.git, so according to this, your URL should be https://git@bitbucket.org/company_name/backend_service.git not https://git@bitbucket.org:company_name/backend_service.git/

SSH vs. HTTPS: Determine whether you should be using SSH or HTTPS to access the repository. If you have set up SSH keys for authentication, make sure you are using the SSH URL instead of the HTTPS URL. The SSH URL format should resemble git@bitbucket.org:<username>/<repository_name>.git. According to this format your URL changes to git@bitbucket.org:company_name/backend_service.git

Abhishek Patel
  • 258
  • 3
  • 10