#author("2023-08-27T04:14:46+09:00","default:ryuichi","ryuichi")
#author("2023-08-27T04:15:03+09:00","default:ryuichi","ryuichi")
* HTTPSでcloneする(廃止) [#dae59c16]

#br
#br
#br

🔥🔥🔥 ''以下の方法にあるGitHubのベーシック認証は廃止されたようだ'' 🔥🔥🔥

#br
#br
#br


 git clone https://username:password@github.com/username/repository.git  # (1)
 git clone https://username@github.com/username/repository.git           # (2)

- (1)のようにusername:passwordを指定する。passwordにはGitHubのパスワードまたはアクセストークンが使える
- パスワードに2段階認証を設定している場合はpasswordを指定できないようなので、(2)のようにusernameだけ指定する。すると、Git資格情報マネージャのダイアログが開くでのそこでパスワードと2段階認証のPINを入力する

** パーソナルアクセストークン [#y5bb7633]

- パーソナルアクセストークンは以下のようにGitHubのSettings画面で作成する
- https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line

** 参考 [#gffe0b3b]

- https://stackoverflow.com/questions/10054318/how-do-i-provide-a-username-and-password-when-running-git-clone-gitremote-git
- https://help.github.com/en/github/using-git/which-remote-url-should-i-use#cloning-with-https-urls-recommended

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS