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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,582
Community Members
 
Community Events
176
Community Groups

Getting git to work with bitbucket in VSCode for MacOS is hell

Edited

Hi,

 

I have been following https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-vs-code/ to connect VSCode with Atlassian bitbucket, but still I cannot push to my git repository. I could clone the repo I am interested in, but cannot push back to it. It keeps telling me "Unauthorised, Please make sure you have the correct access rights and repository exists."

Obviously, I need to do something else or in addition to what is described in this article. 

The documentation could very well be improved and detailing how to configure git to push back to bitbucket. Also, cloning the repository from the Atlassian extension does nothing at all to setup things up correctly so I can push back.

Very, very frustrating.

br

Nicolas

1 answer

0 votes

Hi Nicolas,

When you clone a repository, the remote url is set on your local clone.

Based on the error you see, I assume you are using SSH, is that correct?

If that's the case, the SSH client on your machine may not be sending the SSH key you have set up for Bitbucket Cloud when you push.

If you have only one Bitbucket Cloud account and you use only one SSH key with Bitbucket Cloud from that machine, you can edit the ~/.ssh/config file on your machine (if it doesn't exist, you need to create it first) and add the following configuration:

Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile /Users/myUser/.ssh/id_rsa

where /Users/myUser/.ssh/id_rsa replace with the path and name of your private SSH key, whose public key is uploaded to your Bitbucket account. This will ensure that this key is always offered when you interact via SSH with this repo.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events