无法从git存储库克隆-致命:无法通过重定向更新url库

无法从git存储库克隆-致命:无法通过重定向更新url库,git,github,gitlab,repository,clone,Git,Github,Gitlab,Repository,Clone,我是git新手,当我尝试使用tortoise git克隆到我的本地文件夹时,它说 git.exe clone --progress -v "https://****url****" Cloning into 'C:\localfolder'... fatal: unable to update url base from redirection: asked for: https://***url**** redirect: https://code.devops.com/users/sign_

我是git新手,当我尝试使用tortoise git克隆到我的本地文件夹时,它说

git.exe clone --progress -v "https://****url****"
Cloning into 'C:\localfolder'...
fatal: unable to update url base from redirection:
asked for: https://***url****
redirect: https://code.devops.com/users/sign_in

git did not exit cleanly (exit code 128)

很可能您使用了错误的URL

在本例中,错误消息是由于您使用的URL导致某种重定向,尽管您被重定向到的URL不支持Git通过HTTP使用的协议。看起来这是因为它是某种HTML登录页面,Git不希望理解它


您应该找出正确的URL并使用它,或者如果您有某种代理(通常使用
http\u proxy
环境变量),您应该找出如何提供身份验证。我已经更新了我的Windows帐户密码,需要刷新git。我曾经

git config --global credential.${remote}.username MY_USER_NAME
git config --global credential.helper store
然后执行所需的git clone命令。然后我被要求提供我的新证件,一切都很好