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

'unauthorized' when trying git push

Alashazam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2024

Hello,

 

I have setup a repository with access from 2 laptop

one works fine, and the second with a second account cannot perform a git push

and returns this message:

Unauthorized
fatal: Could not read from remote repository.

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

 

The account has 'write' access to the repository, and an access key setup

 

ssh is working 

 

$ ssh -T git@bitbucket.org
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

 

$ git --version
git version 2.27.0.windows.1

 

what did I do wrong?

1 answer

1 accepted

2 votes
Answer accepted
Alashazam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2024

It took me a while, 

But I fixed it, the problem was that my gui git was too old

So I have updated to latest Git for Windows v2.43.0

(incidentally, then was impacted by this other issue

https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor).

 

but once this was fixed, the git push worked as expected

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events