ドキュメントには頻繁に更新が加えられ、その都度公開されています。本ページの翻訳はまだ未完成な部分があることをご了承ください。最新の情報については、英語のドキュメンテーションをご参照ください。本ページの翻訳に問題がある場合はこちらまでご連絡ください。

このバージョンの GitHub Enterprise はこの日付をもって終了となります: このバージョンの GitHub Enterprise はこの日付をもって終了となりました: 2020-01-22. 重大なセキュリティの問題に対してであっても、パッチリリースは作成されません。 パフォーマンスの向上、セキュリティの改善、新機能のためには、最新バージョンのGitHub Enterpriseにアップグレードしてください。 アップグレードに関する支援については、GitHub Enterprise supportに連絡してください。

Git に GitHub のパスワードをキャッシュする

HTTPS で GitHub リポジトリをクローンする 場合、認証情報ヘルパー を使って、Git が GitHub と通信するたびに GitHub のユーザ名とパスワードを記憶するように Git に指示できます。

SSH で GitHub リポジトリをクローンする場合、ユーザ名とパスワードではなく SSH キーで認証します。 SSH コネクションの設定については、SSH キーを生成する を参照してください。

参考:

  • osxkeychain 認証情報ヘルパーを利用するには、Git 1.7.10 以降が必要です。
  • Homebrew を使って Git をインストールした場合、osxkeychain helper はインストール済みです。
  • Mac OS X 10.7 以降を実行しており、Apple の Xcode コマンドラインツールで Git をインストールした場合、osxkeychain helper は インストールした Git に含まれています。

Git および osxkeychain helper をインストールし、Git に osxkeychain helper の利用を指示します。

  1. Git および osxkeychain helper がインストールされているか、以下のコマンドで確認します:

    $ git credential-osxkeychain
    # Test for the cred helper
    > Usage: git credential-osxkeychain <get|store|erase>
  2. If the osxkeychain helper isn't installed and you're running OS X version 10.9 or above, your computer will prompt you to download it as a part of the Xcode Command Line Tools:

    $ git credential-osxkeychain
    > xcode-select: note: no developer tools were found at '/Applications/Xcode.app',
    > requesting install. Choose an option in the dialog to download the command line developer tools.

    Alternatively, you can install Git and the osxkeychain helper by using Homebrew:

    $ brew install git
  3. Tell Git to use osxkeychain helper using the global credential.helper config:

    $ git config --global credential.helper osxkeychain
    # Set git to use the osxkeychain credential helper

The next time you clone an HTTPS URL that requires a password, you'll be prompted for your username and password, and to grant access to the OSX keychain. これを実行した後は、ユーザ名とパスワードがキーチェーンに保存され、Git への入力が不要となります。

参考リンク

担当者にお尋ねください

探しているものが見つからなかったでしょうか?

弊社にお問い合わせください