Forums

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

getting a error while pushing the code to the repository

Bhupesh Vasudev Gurav July 1, 2020

i did git commit -m "efiei"

after that for pushing it to repository i used git push origin master

then this error came

fatal: 'URL_TO_YOUR_REPO' does not appear to be a git repository
fatal: Could not read from remote repository.

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

and when i am doing git status it is showing

On branch master
nothing to commit, working tree clean

Plz help

 

1 answer

0 votes
Sagar Chavda
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!
July 1, 2020
Hello Bhupesh,

Welcome here I think it's your first commit and push so, can you please once try below command to push.

git push -u origin master
Bhupesh Vasudev Gurav July 2, 2020

NO ITS NOT WORKING

IT IS SAYING NOTING TO COMMIT AND

fatal: 'URL_TO_YOUR_REPO' does not appear to be a git repository
fatal: Could not read from remote repository.

Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2020

What do you get from 

git remote -v

It should be the address to your repository and look something like this:

origin git@bitbucket.org/<workspace>/<repo_slug>.git (fetch)
origin git@bitbucket.org/<workspace>/<repo_slug>.git (push)

 If not, you can update your repository URL using this tutorial: 

Creating and modifying git remote configurations

https://www.atlassian.com/git/tutorials/syncing

Bhupesh Vasudev Gurav July 2, 2020

yes my origin was different so i changed it and then performed git push --force origin master after doing this it worked THANKS A LOT TYLER AND SAGAR

Like Tyler T likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events