0

I follow this ruby on rails book: https://www.railstutorial.org/book/static_pages and from some reason in the part when I need to run these to commands:

$ git remote add origin git@bitbucket.org:<username>/sample_app.git
$ git push -u origin --all # pushes up the repo and its refs for the first time

I get this error:

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.
  • I created a repository on Bitbucket name "sample_app"
  • I saw this topic: git: fatal: Could not read from remote repository but I don't think it's the same issue.
  • I tried to delete the repository and create a new one and also delete the project and create a new one.
  • I work with IDE cloud

All didn't work for me. Any suggestions? Thanks a lot!

Addition (config):

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git@bitbucket.org:XXXX@gmail.com/sample_app.git
        fetch = +refs/heads/*:refs/remotes/origin/*
Community
  • 1
  • 1

1 Answers1

1

2 things need to be done and it's not clear whether or not they are already done:

1) Your public SSH key must be uploaded to your Bitbucket account.

2) You must create the repo on the bitbucket web site. AFAIK there is no way to do that from the command line on a local development machine.

Keith Bennett
  • 4,722
  • 1
  • 25
  • 35
  • In your `git remote add` command, did you replace `` with your user name? The code you posted says and I don't know if that's just because you didn't want to post your user name, or if that was the actual command. – Keith Bennett Apr 29 '16 at 07:42
  • I just found an identical StackOverflow question. Check out http://stackoverflow.com/questions/24875756/conq-repository-does-not-exist-fatal-could-not-read-from-remote-repository. – Keith Bennett Apr 29 '16 at 07:47
  • @user5500724 Was your edit to the question mentioning the other SO post intended to refer to the link I posted? It's a different post. – Keith Bennett May 02 '16 at 05:55