LoginSignup
33
11

More than 5 years have passed since last update.

GitHubで認証エラーが発生するようになった

Last updated at Posted at 2018-02-26

いつも通り最新ソースを取得しようとした。

$ git fetch origin develop 

すると、認証時にエラーが発生し ID/PWD を求められた。
今までならWindowsに記憶してある資格情報を利用してアクセスできていた。

Fatal: HttpRequestException encountered.
   この要求の送信中にエラーが発生しました。
Username for 'https://github.com': 

資格情報マネージャーにて、一旦削除 → 再登録してもダメ。
ID/PWDを入力すれば認証は通る。

Gitの設定情報を確認したが、
Windowの資格情報を利用する設定になっていた。

$ git config --list
credential.helper=manager

gitconfig を再設定してみたが、結果は変わらず。

git config --global --unset credential.helper manager
git config --global credential.helper manager

検索したところ、Git のバージョンをあげろとのこと。
https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/488

Git のバージョンを確認してみた。

$ git --version
git version 2.10.1.windows.1

古かったので、最新版(2.16.2)をDLしてインストール
https://git-scm.com/download/win

$ git --version
git version 2.16.2.windows.1

新しいバージョンでは、うまく動くようになった。

$ git fetch origin develop
$ git merge origin/develop
Already up to date.
33
11
2

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