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

Pushing to remote: Forbidden fatal: unable to access URL The requested URL returned error: 403

Fernando Lizana
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!
October 9, 2018

I keep getting this 403 Forbidden error on Sourcetree while trying to push to remote repository:

 

Pushing to https://bitbucket.org/user/repo

remote: Forbidden

fatal: unable to access 'https://bitbucket.org/user/repo/': The requested URL returned error: 403

 I can successfully push from the command line. I have tried updating credentials in Sourcetree > Preferences > Accounts without success. Any help on this topic?

3 answers

1 accepted

10 votes
Answer accepted
Fernando Lizana
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!
October 10, 2018

I finally found a solution. Because I handle multiple accounts on Bitbucket, I had to change the repoistory URL to

https://user@bitbucket.org/user/repo

 This way Sourcetree prompts the password for the account specified in the URL.

Shraddha Darne
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!
December 5, 2018

How to change this url??

Like # people like this
uhsdevelopers
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!
December 12, 2018

ejemplo.JPG

Thank you, 

here you do that,

kannant1492
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!
December 24, 2018

Can you tell me exactly how to go to that particular page/view you have posted?

Like # people like this
kundan_avyatech
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!
January 19, 2019

Please more explain.

Like 심민우 likes this
brenodiogo
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!
January 8, 2020

For anyone still wondering, on Source Tree go to Settings:

set1.PNG

Then Edit the origin:

set3.png

Like LukyanetsDmitry likes this
1 vote
Birhan
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!
February 12, 2019

I have got the same problem but I have only one repository. please help me out

Gourav Kumar
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!
February 25, 2019

You might not have the write access to the repository

Like # people like this
Gaurav Singh
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!
September 4, 2019

Yes you tell your repository admin to give you the write access not the read access.

Like Birhan likes this
Mitesh Sura July 22, 2020

=== Updates ===

Waited for a day , did not make any changes. It started working. 

=============

 

Nothing seems to be working. Got a single account, I can click the "Remote" button on Sourcetree and it navigates to the Bitbucket. But when pushing the changes, it throws 403 error. 

It was working till yesterday and nothing has changed since then. I also tried creating new app password and under Authentication it shows the green icon but still not able to commit the changes. 

Like cog7it likes this
0 votes
jack5505
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!
September 20, 2019

I can access to bitbucket throug chrome but When I tried to clone project from bitbucket I had also this issue and I solve it with following code 

git config --global http.proxy http://proxi_ip_or_host:80

git config --global http.proxy http://127.0.0.1:8080

127.0.0.1 - you proxy ip 

after two dots : 8080 your port number

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events