LoginSignup
0
0

More than 1 year has passed since last update.

GitHub プライベートリポジトリアクセス

Last updated at Posted at 2023-03-30

概要
GitHubのプライベートリポジトリへアクセスする場合、ssh or トークン認証が必要になるので
以下のどちらかの設定をgitコマンドで行う。

sshの場合(sshは別途秘密鍵/公開鍵をセットする必要があります)

git config --global "url.ssh://git@github.com.insteadof https://github.com"

トークンの場合

git config --global "url.https://oauth2:(トークン)@github.com/(organization).insteadOf https://github.com/(organization)"
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