im trying to do a checkout using sourcetree from bitbucket but im getting this error message the remote server returned an error: (405) Method not allowed
Hi @john mediavilla
Welcome to the Atlassian community!
Let's start by checking the remote URL on your repository. A 405 error typically happens when Sourcetree is trying to access a web page URL instead of the proper Git endpoint. You can do this by going to Repository > Repository Settings > Remotes and making sure the URL ends with .git and isn't just a browser link copied from the address bar.
A few other things you could try:
If it still fails, I would run the same clone or checkout from a terminal with GIT_CURL_VERBOSE=1 to see the exact URL and method being sent, which quickly shows if it is the remote URL or the credential.
Cheer, Martin
It looks like you're new here. Sign in or register to get started.