Hello,
I just created a new repository and am trying to clone it locally. I have Admin permissions on the repository and am the owner of the associated team. I am the only team member of the repo and team so it is not a plan issue, although I am on the standard plan regardless. I am on git version 2.8.1. I have interacted with bitbucket using other accounts in the past.
When attempting to clone a repo, I am getting the following error:
fatal: unable to access 'https://{Username}@bitbucket.org/{username}/{repo-name}.git/': The requested URL returned error: 403
Please advise. This seems like a bitbucket bug.
Thanks,
Clark
Hi
At a guess you have 2FA turned on for your account. If that is the case you can't use basic username/password with HTTPS Git urls.
If you upgrade your Git install to 2.19, you will get find you get prompted by the Git Credential Manager for your details. If you enter your username/password into that it detects you are using 2FA and will prompt you to go through an OAuth grant process. The end result is you have an Access_token which Git can then use to access yoru HTTPS url.
Thanks Michael!
I did not have 2FA enabled but updating Git worked! Much appreciated.
-Clark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had this forbidden issue (403 error). On updating my git to the new version, it started working. So I would recommend this to everyone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why the ???? Randomly stops working and I have to come here to realize that I need to upgrade my git? Typical git overhead bs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks solve my problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you - upgrading Git (from 2.14 to 2.20) fixed my 403 issue.
Kind regards
Warren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
'https://{Username}@bitbucket.org:{Your Password}/{username}/{repo-name}.git/'
enter your password after your id when requesting bit bucket by placing a colon . Than it will ask for a password through spash . Enter the same password again to complete your request.
It will work fine , even i also had faced that problem and its solved by this .
Thanks & Regards
Jr. Software Developer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.