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?

GitHub アップロードエラー

Posted at

Gitで管理するコードをGitHubにプッシュする際、

ssh: Could not resolve hostname https: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

というエラーが出てアップロードできなかった。

git remote add origin https://ユーザー名:アクセストークン@github.com/Hiromasa-Hirakawa/ToDo

のようにしたところエラーが出た。これを

git remote set-url origin "https://ユーザー名:アクセストークン@github.com/Hiromasa-Hirakawa/ToDo"
git push -u origin main

とするとエラーが出ずアップロードできた。

【GitHub入門】初心者向け!GitHubでチーム開発するための基本操作を解説!
こちらの動画を参考にGitとGitHubを連携しました。GitHubにアップロードするところだけ動画内の説明ではうまくいきませんでした。理由はよくわからないです..。

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?