首先命令行操作结果如下: root@zhiren-PowerEdge-T110-II:/zrun# git clone https://git.coding.net/xxxxxxxx/xxxx.git正克隆到 'anbu'...remote: Coding.net Tips : [You have no permission to access this repo.]fatal: unable to access 'https://git.coding.net/xxxxxxxx/xxxx.git
使用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:
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/....... 解决方法: # git --version git version 1.7.1 安装git时yum默认安装的是1.7.1,想到很多Git服务依赖会对git的版本会有依赖问题,于是想到了升级git版本. http://pkgs.repoforge.org/rpmforge-release/