Skip to content

git: 'credential-windcred' is not a git command. See 'git --help'. #1845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Szauka opened this issue Sep 20, 2018 · 5 comments
Closed
1 task done

git: 'credential-windcred' is not a git command. See 'git --help'. #1845

Szauka opened this issue Sep 20, 2018 · 5 comments
Labels

Comments

@Szauka
Copy link

Szauka commented Sep 20, 2018

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    - 64-bit
$ git --version --build-options

git version 2.18.0.windows.1
cpu: x86_64
built from commit: cd1a74fc9dc8a07626c216940db9a51f25206e03
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    - Windows 10 Pro
    - Version 1709
    - 64-bit
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.16299.551]

  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VisualStudioCode
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

git pull [<repository>]
  • What actually happened instead?

I get this.

git: 'credential-windcred' is not a git command. See 'git --help'.

The most similar command is
        credential-wincred

It does look like it's pooling though.

@dscho
Copy link
Member

dscho commented Sep 28, 2018

Does git config --show-origin credential.helper say that windcred should be used perchance? If so, this is configured incorrectly (but not by Git for Windows' installer: it does not try to set this).

@dscho dscho added the question label Sep 28, 2018
@Szauka
Copy link
Author

Szauka commented Oct 2, 2018

Hi @dscho,

git config --show-origin credential.helper returns store.

Is that correct?

@dscho
Copy link
Member

dscho commented Oct 2, 2018

git config --show-origin credential.helper returns store.

Is that correct?

In that case, git-credential-store should have been used. So I am puzzled why your system talks about credential-windcred...

@Szauka
Copy link
Author

Szauka commented Oct 9, 2018

Solved it!

I found that there was another .gitconfig file that will be used apart from the default one and this one had the credential.helper set to windcred. Setting it to manager solved the issue.

Used git config --list --show-origin to find all the config files.

Thanks @dscho for pointing me in the corret direction.

@Szauka Szauka closed this as completed Oct 9, 2018
@dscho
Copy link
Member

dscho commented Oct 10, 2018

I am glad you found it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants