0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Heroku】git push heroku mainでerror: failed to push some refs to 'https://git.heroku.com/*****.git'と出る原因

Posted at

問題

Herokuへのデプロイ時、以下のエラーが発生しました:

git push heroku main
error: failed to push some refs to 'https://git.heroku.com/my-app-name.git'

原因

私の場合Gitのバージョンが2.42.1と少し古いバージョンだったのが原因でした。

git --version
# git version 2.42.1

対処

Homebrewでgitをアップデートしたところエラーが解消し、デプロイに成功しました。

brew upgrade git

同じエラーでお困りの方は、Gitのバージョンアップを試してみてください。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?