前提・実現したいこと
初学者です。
GitHubデスクトップからリモートリポジトリへpushするとエラーになるため解決したいです。
発生している問題・エラーメッセージ
https://i.gyazo.com/b2d18c03402255b92dcd5645993b6299.png # logも確認してみたところ 2020-11-12T05:13:08.825Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128. stderr: ssh: Could not resolve hostname github: nodename nor servname provided, or not known fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. (The error was parsed as 2: Authentication failed. Some common reasons include: - You are not logged in to your account: see GitHub Desktop > Preferences. - You may need to log out and log back in to refresh your token. - You do not have permission to access this repository. - The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits. - If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
試したこと
・間違えて作ってしまったsshキーを削除し、config内も削除しました。
・再ログインを行った。
・再起動を行った。
・コマンドでもpushしてみた
全て行ったが、効果は見られなかった。
補足情報
当初sshキー付与しなければと考え、下記を作成し新しく作成してしまった。
https://qiita.com/0ta2/items/25c27d447378b13a1ac3
https://qiita.com/DarkLight_0/items/8d75f93ff3261a1bf648
その後からpushできなくなってしまったため、鍵の削除をしたが手に負えず。
既存の鍵も削除し、新しく作り直す案も考えたが、既存のものにも影響があるのではないかと考えできずにいる。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/11/12 10:10