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

How do I push commits from local repository to remote repositoty (Bitbucket)?

Lydia Purves Ware May 25, 2023

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?

 

1 answer

0 votes
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 28, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events