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

5 votes
Answer 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
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

196 views 0 12
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