我是一个 Windows 用户,一直在学习 Michael Hartl 的 Ruby on Rails 教程(http://ruby.railstutorial.org/chapters/ruby-on-rails-tutorial),我一直在完美地遵循一切,直到我尝试使用以下命令将应用程序部署到heroku:
sample_app>git push heroku master
fatal: No path specified. See 'man git-pull' for valid url syntax
我看过类似的问题,所有建议的修复都对我不起作用。一些可能有用的附加信息:
sample_app>git remote -v
heroku [git@heroku.com:oscure-dawn-8059.git] (fetch)
heroku [git@heroku.com:oscure-dawn-8059.git] (push)
origin [git@github.com:hassankbrian/sample_app.git] (fetch)
origin [git@github.com:hassankbrian/sample_app.git] (push)
以下是 .git/config 的内容:
[user]
name = Brian
email = hassankbrian@gmail.com
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[branch "master"]
[remote "origin"]
url = [git@github.com:hassankbrian/sample_app.git]
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "heroku"]
url = [git@heroku.com:oscure-dawn-8059.git]
fetch = +refs/heads/*:refs/remotes/heroku/*
[heroku]
remote = heroku