动态线条
动态线条end
操作系统 IP地址 主机名 角色
CentOS7.5 192.168.200.111 Git git服务器

环境配置

[root@git ~]# systemctl stop firewalld
[root@git ~]# iptables -F
[root@git ~]# setenforce 0

完成 git 并配置 git 用户信息

[root@git ~]# yum -y install git

[root@git ~]# useradd git

[root@git ~]# echo "123456" | passwd --stdin git

创建本地仓库 probe

[root@git ~]# su - git

[git@git ~]$ mkdir probe.git

[git@git ~]$ cd probe.git
[git@git probe.git]$ git --bare init

[git@git probe.git]$ exit

克隆项目代码同步到自己创建的仓库中

[root@git ~]# git clone https://github.com/psi-probe/psi-probe

[root@git ~]# git clone git@192.168.200.111:/home/git/probe.git

[root@git ~]# cp -rf psi-probe/* probe/

[root@git ~]# cd probe/

[root@git probe]# git add .

[root@git probe]# git config --global user.email "wxl25678@163.com"
[root@git probe]# git config --global user.name "wxl"
[root@git probe]# git commit -m "all probe"

[root@git probe]# git push origin master

 

posted on 2020-05-08 16:06  玉树临风的猪  阅读(212)  评论(0编辑  收藏  举报