git-for-windows / git

A fork of Git containing Windows-specific patches.
http://gitforwindows.org/
Other
8.4k stars 2.56k forks source link

Git Credential Manager Not Installed with Git on Windows 11 Pro #5246

Closed AlefRP closed 2 weeks ago

AlefRP commented 2 weeks ago

System Information:

Description

During the installation of Git for Windows, I was prompted to enable the Git Credential Manager (GCM). However, after completing the installation, I discovered that GCM was not installed alongside Git. To resolve this, I had to manually download GCM from this repository and configure it using the following command:

git config --global credential.helper "/c/Program\ Files\ \(x86\)/Git\ Credential\ Manager/git-credential-manager.exe"

Steps to Reproduce

  1. Install Git for Windows on a system running Windows 11 Pro.
  2. During the setup, enable the Git Credential Manager option.
  3. Complete the installation process.
  4. Attempt to use Git Credential Manager and notice it is not installed. I've got an error telling that git-credential-manager.exe was not found.

Expected Behavior

The Git Credential Manager should be installed automatically when selected during the Git setup process.

Actual Behavior

The Git Credential Manager was not installed, requiring manual installation and manual configuration and directory specification.

Please address this issue to ensure Git Credential Manager is properly installed with Git for Windows. Thank you!

dscho commented 2 weeks ago

Can you paste the contents of /etc/install-options.txt?

dscho commented 2 weeks ago

git config --global credential.helper "/c/Program\ Files\ (x86)/Git\ Credential\ Manager/git-credential-manager.exe"

Also, does it work if you delete the \(x86\) part from this command-line?

AlefRP commented 2 weeks ago

It worked, even with the \(x86\) part. But I had to set the path to the credential manager manually.

Contents of install-options.txt

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable FSMonitor: Disabled

dscho commented 2 weeks ago

And which Git for Windows installer did you download? In a Git Bash, what is the output of cat /etc/gitconfig and ls -l /mingw64/bin/git*?

AlefRP commented 2 weeks ago

From https://git-scm.com/downloads/win

image image

dscho commented 2 weeks ago

Are you installing the 32-bit or the 64-bit installer? That is not clear from the link you sent.

dscho commented 2 weeks ago

Ah, the screenshot reveals that you are using the 32-bit installer. Please use the 64-bit installer instead.

AlefRP commented 2 weeks ago

Strange, because I had installed the 64 bit version. Thanks.

dscho commented 2 weeks ago

Maybe you had a 32-bit version originally, and installing the 64-bit version was not able to detect it (and therefore could not remove it when upgrading).