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,457,618
Community Members
 
Community Events
176
Community Groups

Moving repo

Edited

I'm pretty much a git and Bitbucket newbie and I've kind of run out of leads on this. 

I've got a local repo that I've inherited from a previous employee who's now left.  I simply want to upload this to a new B.B. repo. Repo is set up but when I try to push

git push origin master

I get: 

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

git remote -v gives me:

origin <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git (fetch)
origin <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git (push)

and the git config file contains:

[remote "origin"]
url = <workspace-id>@bitbucket.org/<workspace-id>/<repo>.git

In BitBucket if I go to User and Group Access -> Add members and try to add myself I get

Steve M was not added. As an Admin of this workspace Steve M already has implicit admin access to this repositry

Can anyone please point me to where I should be looking next?

1 answer

1 vote

Hi Steve and welcome to the community!

The issue is caused by the remote URL of the repo, an SSH URL should have the following format:

git@bitbucket.org:workspace-id/repo.git

You can change the remote url in your clone with the following command:

git remote set-url origin git@bitbucket.org:workspace-id/repo.git

where workspace-id and repo replace with the values for your workspace and repo.

Please keep in mind that you need to set up SSH keys for your account (if you haven't done so already) in order to clone/pull/push to repositories via SSH:

Just a heads up, I removed the actual workspace id and repo names from your post to protect your privacy.

If you have any questions, please feel free to let me know!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events