Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't clone repo from bitbucket using https

Mark O'Hare November 11, 2018

Hello

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

git clone https://{username}@bitbucket.org/{username}/my_repo.git

I keep getting the same error:

remote: Forbidden
fatal: unable to access 'https://{username}@bitbucket.org/{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

2 answers

1 accepted

2 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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}@bitbucket.org/{username}/{repo slug}.git/info/refs.

Let us know if that's your case!

Kind regards,

Ana

Mark O'Hare November 13, 2018

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

 

Mark

BillyP
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 15, 2018

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

Like nguyenhung1007perfect likes this
0 votes
ereynoso931
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2024

For me isn't working using https neither ssh

 

Using ssh:

"Warning: Permanently added 'bitbucket.org' (ED25519) to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository."

 

Using https 

 

"invalid credentials"

 

But I'm using the same credentials, and for been sure, I've reseted my password twice and still not working

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events