好人,请帮忙。
为什么我的文件没有在命令“git add。”之后添加?
我无法推送文件,我收到错误:< / p>
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the
list of known hosts.
Counting objects: 2, done.
Writing objects: 100% (2/2), 200 bytes, done.
Total 2 (delta 0), reused 0 (delta 0)
-----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected
To git@heroku.com:simple-rain-7316.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:simple-rain-7316.git'
或者在Windows上为我推荐另一台Rails服务器。
答案 0 :(得分:1)
你的git遥控器正在使用ssh协议。
首先,您需要创建一个ssh密钥对(ssh-keygen),然后登录heroku(heroku登录),将您的公钥上传到heroku(heroku密钥:add),然后再次尝试推送。