Hi, I am new to Sourcetree and bitbucket. Every time I try pushing something to the remote repository in Bitbucket I get the following message saying:
remote: login failed due to incorrect login credentials or method along with the following
remote: If you are unsure of which login details or login method to use, visit:
remote: https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/
It will then say "Completed with errors" but nothing has been completed.
I have logged in and out multiple times and checked that I am logged in before I begin the push but I keep getting the same error message.
Any advice on what I'm not doing?
Hi Lydia,
Bitbucket uses git as the underlying distributed version control system (DVCS). You have a remote repo in Bitbucket and a local repo on your machine. Your local repo 'talks' to the remote repo via git commands.
When you execute a git command and communication to the remote is required, the local machine needs to authenticate with the remote.
Note that logging in into Bitbucket in the browser doesn't authenticate your local git client.
The page you have linked talks about several ways to authenticate your local repo with the remote.
1. Have you been able to clone the remote repo to your local machine? If this worked, authentication works.
2. Sourcetree uses the underlying git client to perform all actions., I recommend to use plain command line git commands in the beginning to get familiar with git. Effectively you only need to learn a handful of commands.
3. Walk through the steps of creating a personal SSH key on your machine and upload the public key to your bitbucket.org account, you won't have to deal with authentication problems again.
Hope that clears things up - let me know if you need help
Best, Ulrich
// Izymes - Tools for efficient teams
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.