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

1

I'm doing the Ruby on Rails tutorial and I'm getting into a problem. I've already made a hello_app (cap one) repository, and now I'm trying to make the toy_app (cap two) . This is the walkthrough of the tutorial:

1) I created a 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 done too!

3) Create repository in bitbucket . Here is my problem. In chapter one I already created a repository. Now, I came into Bitbucket , I created the new repository "toy_app" (I do not need to add "SSH Key", right?). Bitbucket directs you to type:

$ 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   the repository exists.

What do I do? I can not go on. Can you help me?

    
asked by anonymous 14.10.2015 / 00:17

2 answers

0

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

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

I think it must be some bug, one of those that happens for no reason. I gave "$ git init" and resolved. I made the commands again and it worked.

Thank you guys!

    
14.10.2015 / 20:30