LoginSignup
5
1

More than 5 years have passed since last update.

Azure DevOpsで急にgit pushができなくなった

Posted at

Azure DevOpsで急にgit pushができなくなった

状況

  • Visual Studio(2019 RC)のチームエクスプローラーから、 リモートレポジトリにpush(fetchも)できなくなった。
  • 別のリポジトリだと問題なし。
  • push時のエラーメッセージは以下のとおり。

Logon failed, use ctrl+c to cancel basic credential prompt.
Error: cannot spawn /c/program files (x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
フェッチ中にエラーが発生しました: Git failed with a fatal error.
could not read Username for 'https://dev.azure.com': terminal prompts disabled

解消方法

  • 下記ファイルを削除する。
    • %localAppData%\GitCredentialManager\tenant.cache

補足

  • エラーメッセージからは、git-askpass.exeに原因があると思って、Credential ManagerやGit for Windowsをインストールし直すなど、試行錯誤してみたのですが解決に至らず、私の場合はこの方法で直りました。
  • 急に操作できなくなった理由は不明ですが、前日にAzure DevOps 組織のAzure ADドメインを変更したりしていたので、それが影響しているかもです。
5
1
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
5
1