我有一台运行Ubuntu 18.04.3 LTS的服务器。我希望保存我的git凭证,这样我就不必每次都输入它们。我运行以下命令:
git config --global credential.helper store
然后我执行 git pull
命令,得到如下输出:
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':
然后我被要求输入用户名和密码。之后同样的错误信息被打印出来。
我已经重复了几次相同的过程,使用以下命令取消设置credential.helper
选项:
git config --global --unset credential.helper
git config credential.helper
会输出什么? - Lasse V. Karlsengit config credential.helper
outputsstore
- goedwiggit config --get-all credential.helper
将显示你设置了两个 helper。Git 按顺序尝试它们。第一个失败因为“未找到”,第二个因为缺少参数而失败。使用git config --show-origin
查找这两个命令的定义位置。 - torekgit config --show-origin --get-all credential.helper
- HolyGuacamole