表題の通りです。
しばらく放置していた開発をまた始めたのですが、その際GitHubにpushしようとしたのですが、
以下のエラーが吐き出されます。
fatal: Invalid gitfile format: otetsudai-netto fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
いくつか原因を考え、
①鍵の認証ができていないのかと思い、鍵を作り直し認証を確認いたしました
⇒認証はできています。
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts. Hi takeshi-kushima! You've successfully authenticated, but GitHub does not provide shell access.
②push時にURLを指定しました。
⇒以下、エラーが吐き出されます。
Warning: Permanently added 'github.com,192.30.255.112' (RSA) to the list of known hosts. To github.com:takeshi-kushima/otetsudai-netto.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@github.com:takeshi-kushima/otetsudai-netto.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
認証が実はうまくいっていないのでしょうか?
もしくはその他の点で、エラーが発生しているのでしょうか?
ご教示いただけますと幸いです。
よろしくお願いいたします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。