ホンムノート

git credential

Git ユーザーの認証情報(ユーザー名やパスワードなど)の管理および保存に使用します。

100% ブラウザのローカル処理 0 データアップロード

一般的な例

認証情報を取得する(設定ファイルからユーザー名とパスワードを読み取る)

echo "{{url=http://example.com}}" | git credential fill

認証情報を保存する(設定済みの認証助手中に保存)

echo "{{url=http://example.com}}" | git credential approve

認証情報を削除する(設定済みのすべての認証アシスタントから削除)

echo "{{url=http://example.com}}" | git credential reject

ヒント: 中括弧{{…}}置き換える必要があるのはパラメータ (パス、ファイル名など) です。 コマンドはローカル端末でのみ実行され、このサイトでは入力は保存されません。

英語原文比較

英語の説明と例を展開します (ソース tldr-pages)

Retrieve and store user credentials. More information

Display credential information, retrieving the username and password from configuration files

echo "{{url=http://example.com}}" | git credential fill

Send credential information to all configured credential helpers to store for later use

echo "{{url=http://example.com}}" | git credential approve

Erase the specified credential information from all the configured credential helpers

echo "{{url=http://example.com}}" | git credential reject

コマンド情報

コマンド名git credential
目的Git ユーザーの認証情報(ユーザー名やパスワードなど)の管理および保存に使用します。
対応プラットフォーム通用
例の数3 記事
公式ドキュメントhttps://git-scm.com/docs/git-credential
データソースtldr-pages(CC-BY-4.0)· コミュニティ中国語翻訳

よくある質問

git credential コマンドは何をするのでしょうか?

Git ユーザーの認証情報(ユーザー名やパスワードなど)の管理および保存に使用します。

git credential 使い方は?

シーン別ページ一覧3一般的に使用される例: 各例では、最初に目的を説明し、次に直接コピーできる完全なコマンドを示します (置換する必要があるパラメーターは中括弧内にあります)。

git credential 最も一般的に使用される操作は何ですか?

認証情報を取得する(設定ファイルからユーザー名とパスワードを読み取る):echo "{{url=http://example.com}}" | git credential fill

コマンドの中の中括弧は何を意味しますか?

中括弧{{…}}パスやファイル名などの独自の値に置き換える必要があることを示します。 同じ名前のパラメータには角かっこ (例:[-C|--directory]) は任意の書き込みを示します。