Git不允许我输入克隆密码,因为这是我第一次输入错误 [英] Git doesn't allow me to enter my password for cloning since I got it wrong the first time

查看:233
本文介绍了Git不允许我输入克隆密码,因为这是我第一次输入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I ran the command once, and got a pop-up that said I needed to enter my username and password, I then did not enter the right one, and now the window to enter in the username and password doesn't show up

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/'

我是否可以通过某种方式重做此操作,以便我可以输入用户名和 再次输入密码?

Is there some way for me to redo this, so that I can enter the username and password once again?

推荐答案

我在在这里提到,并附带了最新的Git ,尝试:

As I mention here, with a recent Git, try:

git credential-manager reject https://gitlab.com

那应该重置缓存的凭据,下一个克隆副本应该再次请求它们.

That should reset the cached credentials, and the next clone should request them again.

如果该命令不可用,请使用简化的PATH重试:

If the command is not available, try again with a simplified PATH:

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不允许我输入克隆密码,因为这是我第一次输入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆