git问题集锦

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014744118/article/details/78956950

1、Gitlab拉取或推送项目,输入账号密码后,提示 :

$ git clone https://gitlab.tianchi.aliyun.com/race231640/gitlab-u29625.git
Cloning into 'gitlab-u29625'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.tianchi.aliyun.com/race231640/gitlab-u29625.git/'

大体意思是,HTTP基本认证失败,访问被拒绝。 但采用ssh方式,却是正常的。而且在前段时间http方式也是正常使用的。 记得以前有碰到过这样的问题,在当前Windows登录账户目录下有个.git目录,删掉里面某个文件,就可以了。 但是在C:\Users\your name下没有找到.git目录。 几经百度无果,转战google。

在stackoverflow查到另一个解决方案,使用 git config --system --unset credential.helper 命令可以解决问题。

待续。。。

猜你喜欢

转载自blog.csdn.net/u014744118/article/details/78956950