Create New Reporitory - Git / Bitbucket. Git (Could not read from remote Repository)

Asked

Viewed 245 times

1

I’m doing the Ruby on Rails tutorial and I’m catching on to a problem. I’ve already made a repository hello_app (cap a), and now I’m trying to do the toy_app (cap two). This is the step by step tutorial:

1) I created new directory (toy_app) and typed:

"$ bundle install --without production" pra instalar os gems.

2) So we need to insert toy_app into the versioning system:

$ git init

$ git add -A

$ git commit -m "Initialize repository"

Successfully made as well!

3) Create repository on bitbucket. Here’s my problem. In chapter one I’ve already created a repository. Now, I came to Bitbucket, created the new "toy_app" repository (I don’t need to add the "SSH Key", ne?). O Bitbucket tells it to be typed:

$ cd toy_app

$ git remote add origin [email protected]:MoisesHotmail/toy_app.git

$ git push -u origin --all 

$ git push -u origin --tags

But when I typed the second command, the following message appeared:

conq: Repository does not exist. fatal: Could not read from remote Repository. Please make sure you have the correct access Rights and the Repository exists.

What do I do? I can’t move on. You can help me?

2 answers

0

You can specify the username that SSH should send to the remote repository as part of its url. Put the username, followed by a @, before the repository hostname:

git remote set-url website abc@***.com:path/to/repo

0

I think it should be some bug, of those that happen for no reason. I gave "$ git init" and solved it. I made the commands again and it worked.

Personal thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.