Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.5k stars 570 forks source link

Gitbash in ConEmu not using git-credential-manager #2499

Closed sarukk closed 1 year ago

sarukk commented 1 year ago

Versions

ConEmu build: 221218 x64 OS version: Windows 10 x64 Used shell version: git-bash

Problem description

Hi,

New conemu installation, running a git-bash terminal to run 'git pull' command or generally any git command that connects to remote. credential.helper is configured as manager (in cmder it's working properly, also standalone git-bash terminal is working properly), but it seems that conemu/git-bash is trying to use wincred.

On git pull I'm getting a 'Git for Windows' password prompt instead of prompt from credential manager. On terminal there is information about wincredman:

$ git pull fatal: Unable to persist credentials with the 'wincredman' credential store. See https://aka.ms/gcm/credstores for more information.

Steps to reproduce

  1. Install Git For Windows with Credential manager
  2. Install Con Emu
  3. Run Git-bash terminal
  4. Do a git pull on repository

Actual results

Git is trying to use wincred instead of git credetial manager.

Expected results

Use credential manager.

sarukk commented 1 year ago

Found the solution. If someone hits this issue please set this git configuration option: git config --global credential.credentialStore dpapi