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会有弹出框要求输入密码。

   

以上。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM