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?

More than 1 year has passed since last update.

Githubへpushエラー

Posted at

Githubへpushしようとしたら突然エラーになってpushできなくなった

1回目は通常通りpushできたのですが、突然エラーが出てpushできなくなりました。
色々調べて解決できたので、備忘録として載せておきます。

ec2-user:~/environment/book (main) $ git push origin main
.
.
.
remote: fatal error in commit_refs
To github.com:〇〇〇/book.git
 ! [remote rejected] main -> main (failure)
error: failed to push some refs to 'github.com:〇〇〇/book.git'

と謎のエラーが出来てしまいpushできずにいました。

remote: fatal error in commit_refs

ここの部分を抜き取ってネットで検索してみるとGithub自体に問題があると、このエラーが出てくるようです。
なので、一度ログアウトして再ログインしてpushしてみたら出来ました!

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?