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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

getting a error while pushing the code to the repository

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

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

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 Jul 02, 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

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
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,845 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you