Git远程推送致命错误

时间:2013-08-13 01:47:35

标签: git git-push

我正在尝试从我的mac终端将rails项目推送到github。我一直收到这个致命的错误信息。今天早些时候我正在研究同一个项目,但决定重启它。当我在早些时候工作时,其他人设置了一个存储库并让我访问它,我能够远程推送到该存储库。出于某种原因,当我创建一个新的回购时,我无法推动它。我不确定如何设置权限,但是当我尝试从我的GitHub mac应用程序中执行此操作时,它也无法正常工作。这是我终端的看法......

new-host-5:blogger $ git init
Initialized empty Git repository in /Users/evankline/Documents/Ruby_Programs/JumpStart/Rails_Blogger/blogger/.git/
new-host-5:blogger evankline$ git add .
new-host-5:blogger evankline$ git commit -m "first blog commit"
[master (root-commit) c4d5702] first blog commit
57 files changed, 867 insertions(+)
create mode 100644 .DS_Store
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 README.rdoc
create mode 100644 Rakefile
create mode 100644 app/.DS_Store
create mode 100644 app/assets/.DS_Store
create mode 100644 app/assets/images/.keep
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/javascripts/articles.js.coffee
create mode 100644 app/assets/stylesheets/.DS_Store
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/assets/stylesheets/articles.css.scss
create mode 100644 app/assets/stylesheets/screen.css
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/controllers/articles_controller.rb
create mode 100644 app/controllers/concerns/.keep
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/helpers/articles_helper.rb
create mode 100644 app/mailers/.keep
create mode 100644 app/models/.keep
create mode 100644 app/models/article.rb
create mode 100644 app/models/concerns/.keep
create mode 100644 app/views/.DS_Store
create mode 100644 app/views/articles/.DS_Store
create mode 100644 app/views/articles/index.html.erb
create mode 100644 app/views/articles/show.html.erb
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 bin/.DS_Store
create mode 100755 bin/bundle
create mode 100755 bin/rails
create mode 100755 bin/rake
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/filter_parameter_logging.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/migrate/20130813003448_create_articles.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 lib/assets/.keep
create mode 100644 lib/tasks/.keep
create mode 100644 log/.keep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100644 test/controllers/.keep
create mode 100644 test/controllers/articles_controller_test.rb
create mode 100644 test/fixtures/.keep
create mode 100644 test/fixtures/articles.yml
create mode 100644 test/helpers/.keep
create mode 100644 test/helpers/articles_helper_test.rb
create mode 100644 test/integration/.keep
create mode 100644 test/mailers/.keep
create mode 100644 test/models/.keep
create mode 100644 test/models/article_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 vendor/assets/javascripts/.keep
create mode 100644 vendor/assets/stylesheets/.keep
new-host-5:blogger evankline$ git remote add origin git@github.com:emk486/blogger.git
new-host-5:blogger evankline$ git push -u origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

有人可以向我解释如何解决此错误。谢谢!

1 个答案:

答案 0 :(得分:2)

该拼写下的git repos列表中不存在该repo。

您有一个名为“JSLRails_Blogger”但不是“博客”

或许尝试将您的远程线路更改为:

git remote add origin git@github.com:emk486/JSLRails_Blogger.git

注意:您可以在此处查看git上的存储库列表:

https://github.com/emk486?tab=repositories