Forums

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

I am really struggling with git push -u origin master

jojo
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!
September 23, 2023

when I do `git push -u origin master`, it will show me as below: 

--

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

--

any one could give help....

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2023

Hi @jojo,

Welcome to the community.
To get more information on why Git push is failing, you can debug it by adding the debug flags below:

You can run the command below:

GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -v" GIT_CURL_VERBOSE=1 git push -u origin master

You can run the command in your terminal (For Mac/Linux) or Git bash(For Windows)

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events