https://note.com/consultant1221/n/n7084879ae345
LINEbotを作ろうと思い、上記のサイトを
参考にしながら作業をしていたのですが、
git push heroku masterを打つと
error: src refspect master dose not matchany
error: failed to push some refs to 'ssh://heroku.com/testapp.git'
と出てしまいます。色々なサイトを調べた
のですが結局このエラーがなくなりません。
どうすればよいのでしょうか?
追記
git status
On branch master
No commits yet
Changes to be committed:
(use ''git rm --cached<file>...''to unstage)
new file: Procfile
new file: main.py
new file: requirements.txt
new file: runtime.txt
git log
fatal:your current branch 'master' dose not have any commits yet
追記
git commit -am "make it better"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'masakazu@DESKTOP-D231TSH.(none)')
C:\Users\masakazu\Desktop\line-bot-test>
このような感じで出ます。。
追記
一応設定はして最初に質問したエラーはなくなったのですがこれは上手くいっているのでしょうか?
git commit -am "make it better"
[master (root-commit) 460db2b] make it better
4 files changed, 45 insertions(+)
create mode 100644 Procfile
create mode 100644 main.py
create mode 100644 requirements.txt
create mode 100644 runtime.txt
C:\Users\masakazu\Desktop\line-bot-test>git push heroku master
The authenticity of host 'heroku.com (50.19.85.156)' can't be established.
RSA key fingerprint is SHA256:8tF0wX2WquK45aGKs/Bh1dKmBXH08vxUe0VCJJWOA/o.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
追記
やったらまたエラーが出てしまいました。。
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'heroku.com,50.19.85.132' (RSA) to the list of known hosts.
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (6/6), 1.16 KiB | 39.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Requested runtime (python-3.8) is not available for this stack (heroku-18).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to shomohin.
remote:
To ssh://heroku.com/shomohin.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://heroku.com/shomohin.git'
回答1件
あなたの回答
tips
プレビュー