I have a server running Ubuntu 18.04.3 LTS. I want to save my git credentials, so I don't have to enter them every time. I run the following command:
git config --global credential.helper store
Then I git pull
and get:
user@host:~/project$ git pull
git: 'credential-manager' is not a git command. See 'git --help'.
usage: git credential-store [<options>] <action>
--file <path> fetch and store credentials in <path>
Username for 'https://gitlab.com':
After that I'm being asked for my username and password. And then the same error is printed.
I've already repeated the same process several times, unsetting the credential.helper
option with:
git config --global --unset credential.helper
I executed this command
git config --global --unset credential.helper
and at this time I already got no error after git pull command. I have git of version 2.34.1.windows.1
The documentation shows the command
$ git config --global credential.helper 'store --file ~/.my-credentials'
So it seems likely that git
simply executes the command set in credential.helper
. The command you set is just store
... which requires a mandatory argument ... which you haven't provided.
This explains why the store
command (actually git credential-store
) isn't working as you expect.
I don't know where the complaint about credential-manager
comes from - most likely it's just mis-reporting all failure states as "not a git command".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With