Missed Team ’24? Catch up on announcements here.

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

Repository access denied

Yusuf Hamisi June 18, 2018

The repo is new, am trying to push the first commit but i get the error

repository access denied.
fatal: Could not read from remote repository.

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

I have been to google and also viewed the answers to the other questions on this forum but none of the solutions worked for me so far.

My keys have been added and the key that i use with this repo is listed when i do

ssh-add -l

and my internet is ok too, what could be the possible reasons for this and how do i sort it out. thanks in advance

2 answers

1 accepted

0 votes
Answer accepted
Yusuf Hamisi June 18, 2018

I fixed it by following instructions from here

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2018

Hello,

What is your command for push? Are you sure that you setup remotes correctly? You can check your remotes with

git remote -v

Yusuf Hamisi June 18, 2018

my command for push is git push origin master

since its the first push and git remote -v prints out:

origin git@bitbucket.org:----.git (fetch)
origin git@bitbucket.org:----.git (push)
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2018

kindly try

git remote get-url origin

and make sure that there is the right url

Yusuf Hamisi June 18, 2018

The url is correct, even copy pasted the command directly from bitbucket

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events