SourceTree + Bitbucket = HTTP code 405

Dear all,

I've just reinstalled SourceTree after some annoying connection problems between SourceTree and Bitbucket (they seem to be resolved). Now it seems I've found a new type of error and would much appreciate your help, since I can't figure out what to do. At pushing my committed changes to the repo I get the following error message:


git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin [BRANCHNAME]:[BRANCHNAME]

Pushing to https://[ACCOUNT][USER]/[REPONAME].git

fatal: unable to access 'https://[ACCOUNT][USER]/[REPONAME].git/': Received HTTP code 405 from proxy after CONNECT

Completed with errors, see above.


I'm running SourceTree version and Windows 7.

Thanks a million in advance!

Henrik Hermansson

2 answers

1 accepted

Dear Aafrin,

Thanks for your help! I was able to solve the issue by a bit of experimenting. Apparently, unchecking the "Add proxy server configuration to Git / Mercurial" under the Options/Network tab did the trick.

Thanks again!


Hi Henrik,

Can you verify that you are able to reach out the remote repository by running the git-ls-remote using the git command line from your machine not the built in git command line tool inside the SourceTree.

If you are able to get reponse from the git command line, the problem would be with your firewall settings that preventing from the files being pushed to the remote repositiory.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,940 views 1 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you