It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't clone repo from bitbucket using https


I've been trying to clone a new private repo I set up using the normal format below

git clone https://{username}{username}/my_repo.git

I keep getting the same error:

remote: Forbidden
fatal: unable to access 'https://{username}{username}/my_repo.git/': The requested URL returned error: 403

I set up a new account on bitbucket with a different email address for this repo. Would this cause any issues with GitBash when cloning the repo? Would I have to update my email in my gitbash settings to match the new one?

I thought that you'd be prompted for a username or password when doing this too, but I'm never prompted.

New to using bitbucket, so any help is much appreciated

1 answer

1 accepted

2 votes
Answer accepted
Ana Retamal Atlassian Team Nov 13, 2018

Hi Mark, welcome to the Comunity :)

I don't have enough information as to know what are the specifics about that repo, but you might have come across this 403 while accessing https://{username}{username}/{repo slug}.git/info/refs.

Let us know if that's your case!

Kind regards,


Hi Ana,

It's not quite the same case I was having here but I've since resolved the issue by using ssh to clone the repo instead.


Kind regards



Billy Poggi Community Leader Nov 15, 2018

Switching to SSH would have been my answer!  Glad to see you're a step ahead! :)

Like Nguyễn Văn Hùng likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,081 views 4 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you