Git没有';I don’我不允许输入克隆密码,因为我第一次就弄错了

Git没有';I don’我不允许输入克隆密码,因为我第一次就弄错了,git,git-clone,Git,Git Clone,我运行了一次命令,得到一个弹出窗口说我需要输入用户名和密码,然后我没有输入正确的,现在输入用户名和密码的窗口没有显示 C:\Users\User\Desktop>git clone https://gitlab.com/group/project.git Cloning into 'project'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://gitlab.com/group/

我运行了一次命令,得到一个弹出窗口说我需要输入用户名和密码,然后我没有输入正确的,现在输入用户名和密码的窗口没有显示

C:\Users\User\Desktop>git clone https://gitlab.com/group/project.git
Cloning into 'project'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/group/project.git/'
有什么方法可以让我重做,这样我就可以输入用户名和密码了吗 再次输入密码?

当我使用最近的Git时,请尝试:

git credential-manager reject https://gitlab.com
这将重置缓存的凭据,下一个克隆将再次请求它们

如果命令不可用,请使用简化路径重试:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

尝试git克隆https://username@gitlab.com/group/project.git,查看是否询问密码。如果没有,请尝试git clonehttps://username:password@gitlab.com/group/project.git看起来您需要重置
Windows git凭据管理器
。这个答案可能对你有帮助