我是一个windows用户,一直在学习Michael Hartl (http://ruby.railstutorial.org/chapters/ruby-on-rails-tutorial)的Ruby on Rails教程,我一直遵循一切,直到我尝试将应用程序部署到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
这与使用"ssh://"前缀和存储库名称中的相对语法的组合有关。似乎与使用的六闪石有关。缺少斜杠加上"ssh://"前缀似乎会混淆它。
- ssh://git@server:relative - NO
- git@server:relative - YES
- ssh://git@server/relative - MAYBE (gitolite对此很满意)
- ssh://git@server:/relative - MAYBE (gitolite对此很满意)
- ssh://git@server/absolute - YES