手順概要
GitHubのOAuthトークンを利用してcloneする。
https://docs.github.com/ja/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token
設定の流れ
注意
・トークンの表示は一度のみなので必ずコピーすること(一応、同じ手順で再生成ができる)
・過去1年間使用されていないトークンを自動的に削除される
cloneする
https://[token]:x-oauth-basic@[githubのリポジトリURL]
でアクセスできる。
例)token = aaa, リポジトリURL = github.com/demo/repo.git
git clone https://aaa:x-oauth-basic@github.com/demo/repo.git