4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【エラー対処】error failed to push some refs to pre-receive hook declinedが出るとき意外と忘れがちなこと

4
Posted at

はじめに

普段どおりGitKerakenでコミットして、意味もないけどプッシュしとくか〜〜
って思ったら、プッシュがいかない。

error failed to push some refs to pre-receive hook declined

みたいなメッセージが出る。

普段ならうまくいくのに、急にいかない!?ってなりました。

色々探した後...

色々とネットを探しても、関係ありそうな情報がない。
そこで、ファイルを入れたり出したりを繰り返すとどうやら重いファイルを含んでいると上記エラーが出ているっぽい。

GitHubの制約を見ると

  • 50MB以上のファイルで警告が出る
  • 100MB以上のファイルはアップロードできない

とありました。

どうやらGitKerakenではこのように100MB以上のファイルを含んでいるとエラーを

error failed to push some refs to pre-receive hook declined

のように出すっぽいです。

事実、100MB以上のファイルを除けば普通にプッシュできました。

4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?