LoginSignup
14
11

More than 3 years have passed since last update.

WSL 環境における Git の credential helper 設定

Last updated at Posted at 2020-05-09

元ネタ: Edward Thomson: Git Credential Manager with Windows Subsystem for Linux

以下から Git for Windows をインストール

WSLのシェル上で以下のように git credential helper を設定(Git for Windows の credential helper を利用する)

git config --global credential.helper \
  "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"

すると git コマンドでリポジトリの認証が必要な箇所で以下のようにウィンドウが開いて認証を求められる。

image.png

認証情報は一定期間保持されているらしい。便利だ。

14
11
1

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
14
11