小编goe*_*wig的帖子

git:'credential-manager' 不是 git 命令

我有一台运行 Ubuntu 18.04.3 LTS 的服务器。我想保存我的 git 凭据,这样我就不必每次都输入它们。我运行以下命令:

git config --global credential.helper store
Run Code Online (Sandbox Code Playgroud)

然后我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':
Run Code Online (Sandbox Code Playgroud)

之后,系统会要求我提供用户名和密码。然后打印出同样的错误。

我已经多次重复相同的过程,credential.helper通过以下方式取消设置该选项:

git config --global --unset credential.helper
Run Code Online (Sandbox Code Playgroud)

git

22
推荐指数
2
解决办法
4万
查看次数

标签 统计

git ×1