Git clone 报错 128

使用tortoiseGit检出项目是报错,错误代码128;

使用git bash检出相同目录时返回 git clone fatal:destination path already exists and is not empty director

结合之前的内容和确认gitlab上有仓库,感觉应该是权限的问题。

   

解决方法: 请求的时候将用户带上,将请求url变更一下:

before:

https://gitlab.com/my_gitlab_user/myrepo.git

after:

https://my_gitlab_user@gitlab.com/my_gitlab_user/myrepo.git 没有权限时请求的地址

如果是windows会有弹出框要求输入密码。

   

以上。

 

追加

一直以来,本人在windows系统(工作中使用的电脑)下载github项目不成功,所以一直在使用wsl上的git下载。

win下 git clone报错是连不上github.com:SSL_ERROR_SYSCALL in connection to github.com:443

直到某天需要安装vim plug在win下,而插件需要下载github上的资源,所以开始百度。

最终在StackOverflow上的一个答案提到可能是网络的原因,果断切换手机热点测试,结果成功了。

所以,git clone 报错,也可能是网络的原因。

posted @ 2018-10-27 15:17  漫步ing  阅读(14473)  评论(0编辑  收藏  举报