温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

自建git服务器连接Pycharm系列一:使用centos7

发布时间:2020-03-04 21:03:05 来源:网络 阅读:965 作者:白话 栏目:软件技术

在自己的Linux虚拟机上,搭建git服务器,用来保存代码。
这里是先简单熟悉一下。后期的代码管理,并不用自带的git。

在centos7中,默认自带git
查看git版本
[root@dscrapy01 ~]# git --version
git version 1.8.3.1
找一个github上的项目做测试。

这个是fork的别人的项目。

  • 当克隆的时候,提示一个错误:
[root@dscrapy01 ~]# git clone https://github.com/feature09/clusterdock
正克隆到 'asteroids'...
fatal: unable to access https://github.com/feature09/clusterdock/': Peer reports incompatible or unsupported protocol version.
  • 百度查看的解决方案:
更新了nss/curl/libcurl这三部分内容
[root@dscrapy01 ~]# yum update -y nss curl libcurl

重新克隆项目,成功。

[root@dscrapy01 ~]# git clone https://github.com/feature09/clusterdock
正克隆到 'clusterdock'...
remote: Counting objects: 157, done.
remote: Total 157 (delta 0), reused 0 (delta 0), pack-reused 157
接收对象中: 100% (157/157), 124.99 KiB | 2.00 KiB/s, done.
处理 delta 中: 100% (67/67), done.
进入到项目目录,项目目录就在当前用户家目录下
[root@dscrapy01 clusterdock]# pwd
/root/clusterdock
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI