Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

'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 edited

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 edited

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
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events