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/*