💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
一)创建用户 ![](https://box.kancloud.cn/a4fb0061606cf8b6bd1dfd278532a88f_1214x470.png) ![](https://box.kancloud.cn/5c302bd25def8297e994cd5b709cb78e_1117x539.png) 创建组 ![](https://box.kancloud.cn/cf467f1a2dc21b152a15e0f920a67f47_1163x441.png) 将用户加入到组 ![](https://box.kancloud.cn/a2c0e247120882435a76cfbbcc538d20_1179x649.png) 二)创建项目 ![](https://box.kancloud.cn/21f1563979651a1212a359839f78d99b_1093x313.png) ![](https://box.kancloud.cn/94c1247038be64d3a80a1677e6bba776_1221x617.png) 客户端测试 [root@static ~]# yum -y install git [root@static ~]# ssh-keygen -t rsa [root@static ~]# cat .ssh/id_rsa.pub 然后把公钥放到gogs服务器上 ![](https://box.kancloud.cn/4ea4fbdced460a993f73ff2611e89d5e_1207x647.png)![] [root@static ~]# git clone git@git.91als.net:administrator/New_Pet.git Initialized empty Git repository in /root/New_Pet/.git/ The authenticity of host 'git.91als.net (10.2.11.204)' can't be established. RSA key fingerprint is 5f:86:d1:ad:c5:07:a0:2a:80:f9:98:d3:05:a2:04:9f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'git.91als.net,10.2.11.204' (RSA) to the list of known hosts. warning: You appear to have cloned an empty repository. [root@static ~]# ll New_Pet/ [root@static New_Pet]# git config --global user.name "xionghaihua" [root@static New_Pet]# git config --global user.email "xionghaihua@91als.com.cn" [root@static New_Pet]# touch README [root@static New_Pet]# git add . [root@static New_Pet]# git commit . -m "add README" [root@static New_Pet]# git remote add origin git@git.91als.net:administrator/New_Pet.git [root@static New_Pet]# git push -u origin master Counting objects: 3, done. Writing objects: 100% (3/3), 208 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To git@git.91als.net:administrator/New_Pet.git * [new branch] master -> master Branch master set up to track remote branch master from origin.