LoginSignup
0
0

More than 3 years have passed since last update.

2020/10以降のherokuへのpushについて。

Posted at

なんてことはないのですが、gitの仕様変更に伴って起きたエラー。

%git push heroku masterが使えなくなってしまった

遭遇したエラー

error: src refspec master does not match any
error: failed to push some refs to 'git@github.com:user-name/repository-name.git'

???

2020/10以降、gitで自動生成するとmasterブランチではなく、mainブランチができることによるエラーでした。

%git push heroku main

とすることで無事通りました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0