Pycharm连接gitlab

 

一。从gitlab上clone代码到本地pycharm

(一)。gitlab上找到创建项目的连接地址,分两种:

     1. http连接方式:

         http://10.22.1.72/derekchen/cxg.git

     2. ssh连接方式:

         git@10.22.1.72:derekchen/cxg.git

         免登陆方式:事先把client端的id_sda_pub里的公钥拷贝到gitlab

         登陆方式:输入ssh的账号密码

(二)。checkout gitlab

(三)。填入地址,并test测试下联通性:

(四)。点击“clone”,就会把gitlab上代码拉到本地pycharm里

二。本地代码提交到gitlab:

1. 添加到本地git

2.添加注释:

  

3.提交,并push到gitlab上

原文地址:https://www.cnblogs.com/sunyllove/p/13498020.html