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

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

Bit Bucket Edited

Trying to clone repository in bitbucket and running the following command in folder from powershell.

 

git clone <url removed>

It will not accept my password and getting 403 access error.

 

 

2 answers

0 votes

Hi Ricky and welcome to the community.

Do you get asked for a password when you enter the clone command, or not? If a Git credential helper is used in your system and has stored a (possibly incorrect) password for Bitbucket, then you won't be asked for a password when cloning. So, I am asking this in order to understand if this could be a possible cause for the issue or not.

In case you do get asked for a password when cloning: if you have a managed Bitbucket account and you use your company's SSO to sign in to Bitbucket website (https://bitbucket.org/), then the account's password won't work for Git operations via HTTPS. In this case, you'll need to generate an app password for your account, and use that instead of the password when you clone/pull/push to repos.

Could you give this a try and let me know if it works?

Kind regards,
Theodora

Thanks Theodora and thank you.

 

Yes, I get ask for the password. I have tried both the bitbucket password and the password I created app password I created in my personal settings. Other users that work use the app password and it seems to work. However, myself and another colleague are new to this area and trying to get up and running to clone repository so we can contribute. 

 

My company uses SSO as well, so we are doing the right process but not working. I would really appreciate any assistance you can provide to get this working. 

I was able to get working using by putting password in automatically. Used the command below:

git clone https://{username}:{password}@github.com/{username}/project.git

Hi Ricky,

Thanks for the update and I'm glad you were able to find a workaround.

If the issue still persists when you don't use the app password in the clone command directly, we would need to do some troubleshooting to figure out why.

If you don't want to or don't have time to do this right now, it's perfectly ok. I'll just write what info we would need to troubleshoot this, in case you would like to do so at a later point:

1. The version of Git you are using

git --version

2. The full output of

GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 <git command>

where <git command> is the command that gives you the error when you don't use the app password in the URL.

Please remove the line that starts with “Authorization:” from the output prior to sharing the output here, as it includes credential info.

Just a heads up, I removed the clone URL from your original post for privacy reasons.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

34 views 0 1
Join discussion

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